Closed GoogleCodeExporter closed 9 years ago
Patch attached. read(2) returns a 0 on EOF and java returns a -1. A -1 in
read(2)
is indicative of an error.
It is not acceptable to return 0 bytes in normal Sockets. Java nio channels
support
this. I removed the code which handled the EWOULDBLOCK or EAGAIN errors since
non-blocking is not supported.
Original comment by derrick....@gmail.com
on 7 Apr 2010 at 5:51
Attachments:
Test cases attached. Requires junit4.
Original comment by derrick....@gmail.com
on 7 Apr 2010 at 5:52
Attachments:
Nice catch!
Junit tests look sweet. Compiles, works. Committed to SVN.
Thanks vincentheet, thanks Derrick!
Original comment by ckkohl79
on 7 Apr 2010 at 9:02
Original issue reported on code.google.com by
vincentheet
on 8 Mar 2010 at 10:00