Date: Tue, 12 Dec 2006 11:17:10 -0800 From: Greg Lewis <glewis@eyesbeyond.com> To: "Arne H. Juul" <arnej@pvv.ntnu.no> Cc: freebsd-java@freebsd.org Subject: Re: close() of active socket does not work on FreeBSD 6 Message-ID: <20061212191710.GA483@misty.eyesbeyond.com> In-Reply-To: <Pine.LNX.4.62.0612111535280.32258@decibel.pvv.ntnu.no> References: <Pine.LNX.4.62.0612111535280.32258@decibel.pvv.ntnu.no>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 11, 2006 at 03:46:12PM +0100, Arne H. Juul wrote: > I've had problems with some tests hanging on FreeBSD 6/amd64. This happens > both with diablo-1.5.0_07-b01 and the java/jdk15 compiled from ports. > > After much digging we've determined that the root cause is that > the guarantee in the socket.close() API, see the documentation at > http://java.sun.com/j2se/1.5.0/docs/api/java/net/Socket.html#close() > isn't fulfulled - the thread blocked in I/O on the socket doesn't wake up. > > Here's a pretty small test program that demonstrates the problem (given > that you're running sshd on port 22, if not change the port number to > something that the program can connect to). Is this a known problem? > Does it happen for everybody on FreeBSD 6? This is, unfortunately, a known problem. See http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/97921 -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061212191710.GA483>