Bug in java.net.Socket close() behavior?
Greg Lewis
glewis at eyesbeyond.com
Thu Oct 19 16:29:16 PDT 2006
On Mon, Oct 16, 2006 at 01:24:08PM -0400, Joseph Gleason wrote:
> According to the API for java.net.Socket close():
>
> "Any thread currently blocked in an I/O operation upon this socket
> will throw a SocketException."
>
> http://java.sun.com/j2se/1.5.0/docs/api/java/net/Socket.html#close()
>
> I have observed that java 1.5 on FreeBSD does not follow this while
> the Windows and Linux ones I have tested do. On the FreeBSD runtimes
> that I have tested, a thread blocked on reading a socket just hangs
> forever if the socket is closed.
See http://www.freebsd.org/cgi/query-pr.cgi?pr=97921
--
Greg Lewis Email : glewis at eyesbeyond.com
Eyes Beyond Web : http://www.eyesbeyond.com
Information Technology FreeBSD : glewis at FreeBSD.org
More information about the freebsd-java
mailing list