natPlainSocketImplWin32 fix and natPlainSocketImplPosix adjustment
Marco Trudel
mtrudel@gmx.ch
Wed Oct 4 14:30:00 GMT 2006
Hello list
If a remote host closes a socket connection, posix throws an
IOException. Win32 doesn't do anything because WSAECONNRESET is set and
this is ignored (it looks like it's the equivalent to the "Broken pipe"
errno on posix).
The consequences are, that on win32 an application just continues
sending data until all data is sent.
Another thing is, that sun jvms throw SocketException, not IOException.
I adapted both files for that.
The copyright assignment isn't done yet, but I think we can discuss the
patch anyway. I will repost it (as well as the security patch) as soon
as the assignment stuff has taken place.
Comments, hints?
Marco
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Socket-patch.txt
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20061004/cab14226/attachment.txt>
More information about the Java-patches
mailing list