3 ms·
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 retur
by vardump 12y 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.
- icelancer 12y agoYeah. This is a pretty common bug I've seen elsewhere.