Commit de205e06 by Ito Kazumitsu Committed by Michael Koch

2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>

        * java/net/ServerSocket.java
        (accept): Close the socket when error occured.

From-SVN: r79774
parent bdf11d55
2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
* java/net/ServerSocket.java
(accept): Close the socket when error occured.
2004-03-21 Jeroen Frijters <jeroen@frijters.net>
* java/net/URI.java (parseURI): Added unquoting.
......
......@@ -323,7 +323,24 @@ public class ServerSocket
sm.checkListen (impl.getLocalPort ());
Socket socket = new Socket();
implAccept (socket);
try
{
implAccept(socket);
}
catch (IOException e)
{
try
{
socket.close();
}
catch (IOException e2)
{
}
throw e;
}
return socket;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment