Gunnar Farnebäck gunnar@lysator.liu.se writes:
Phil wrote:
In the specification, the end-of-line will be either a linefeed or carriage return. Empty lines are to be disregard and no output will be sent back.
What about lines containing only whitespace ? Are they considered empty, and so not echo-ed, or are they echo-ed ?
I have one small niggling concern with this... It sees we wish to allow controlling programs to be lax about how they terminate lines. ie the controller is not required to know exactly what it's sending.
However, because the protocol is a request-response protocol, it is vital that both sides know whether a response is expected. If the controller thinks a response is required, but the engine doesn't, then it could deadlock. Being woolley about line termination could possibly result in such a situation.
I suspect the current proposal is safe, but it's something to bear in mind...
dd