With reference to http://www.kaffe.org/pipermail/kaffe/2004-March/045645.html
I suggest the following patch, which I committed in Kaffe. ChangeLog entry: 2004-03-17 Ito Kazumitsu <[EMAIL PROTECTED]> * libraries/javalib/java/net/ServerSocket.java (accept): Close the socket when error occured. --- java/net/ServerSocket.java.orig Wed Feb 25 06:38:46 2004 +++ java/net/ServerSocket.java Thu Mar 18 07:34:01 2004 @@ -323,7 +323,21 @@ sm.checkListen (impl.getLocalPort ()); Socket socket = new Socket(); - implAccept (socket); + try + { + implAccept (socket); + } + catch (IOException e) + { + try + { + socket.close (); + } + catch (IOException e) + { + } + throw e; + } return socket; } _______________________________________________ Classpath mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/classpath