Hacker News new | ask | show | jobs
by vardump 4189 days ago
Let me guess. 8192 byte buffer and assumption in code that <=0 [byte count/-1 error] from read() means read error.

Sometimes you will get zero bytes read return values. Like when there really isn't a byte more to read. So zero bytes available doesn't signal an error.

1 comments

Yeah. This is a pretty common bug I've seen elsewhere.