Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH v2 08/20] remote-curl: accept empty line as terminator

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:51:30

Jonathan Nieder [off-list ref] writes:
Side note: a "done" capability doesn't sound like a bad idea, though,
for another reason.  The transport-helper could tell fast-import to
expect a "done" command at the end when importing from a remote helper
declaring it, to catch situations in which the pipe prematurely closes
(for example, because the remote helper has segfaulted).
quoted
I don't see a convention of terminating on a
blank line in docs,
Yes, this would be nice to document.
quoted
only on EOF.  Also I can imagine a blank
line being read in a case of communication error
A spurious NL, NL, EOF sequence does not sound likely to me.  If the
command stream is passing through a noisy channel, there are worse
corruptions to worry about (e.g., fetching to the wrong ref).
I think everything you said in this message makes sense, especially the
part about "premature EOF detection".

The spurious LF is an issue if you are trying to drive the backend by hand
for testing, but otherwise probably not.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help