On 20/10/2015 23:36, Buck Evan wrote:
Is it expected that it's line-buffered?

 It's not line-buffered. It's optimally buffered, i.e. the buffer
is flushed whenever it's full (obviously) or whenever the loop
goes back to reading with a chance of blocking. When you test
with a loop around echo, you send lines one by one, so the
behaviour appears to be line buffering, but that's only an
artifact of your test.

--
 Laurent

Reply via email to