This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: issue with ServerSocket::accept
- From: Vladimir Leven <vladimirl at wrx-ca dot com>
- To: Vladimir Leven <vladimirl at wrx-ca dot com>
- Cc: java at gcc dot gnu dot org
- Date: Thu, 13 May 2004 12:32:36 -0600
- Subject: Re: issue with ServerSocket::accept
- References: <40633001.3090605@wrx-ca.com> <408935D7.2060600@wrx-ca.com> <408E92C7.9090302@wrx-ca.com> <4098164C.7050303@wrx-ca.com> <40A16233.3060301@wrx-ca.com> <40A3BB75.9060509@wrx-ca.com>
Oops. It does seem to block -- my mistake. But there is still a problem.
When I close the serverSocket, java generates a SocketException, but gcj
does not appear to do so.
Vladimir Leven wrote:
I am fairly certain that ServerSocket::accept is not working properly.
I have reproduced the behaviour in both GCJ 3.2 and 3.4. It does not
seem to be blocking. I have a unit test which passes using javac, but
not gcj. I am attaching the pertinent source code.
Vlad