Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: tcp_read -d and newlines



On Mon, Apr 06, 2009 at 09:59:01AM +0100, Peter Stephenson wrote:
> I've had problems with this, too, in the past, although I think my problem
> was chunks of input (not necessarily ending in EOF) that didn't have
> newlines.  I could find an easy way of handling this.  It sounds like your
> problem is when there is an EOF.

Yes, I've had some mysteriously loss before but in this case I was
definitely able to confirm that the transmission ended in not-a-newline.
read processes the data, but returns an error so tcp_read tosses it.

I don't actually need the input broken up into lines, so maybe I should
be doing this differently.



Messages sorted by: Reverse Date, Date, Thread, Author