-
Bug
-
Resolution: Fixed
-
P4
-
6
-
b06
-
unknown
-
generic
-
Verified
There appears to be a socket leak in both DatagramSocket and MulticastSocket constructors. Both classes have constructors that create a socket and then attempt to bind. The bind can fail with a variety of exceptions none of which are caught by the constructor. Thus, the actual system socket that was allocated by impl.create() is never closed.
Actually, it is closed by the SocketImpl finalizer, but that's too late.
Socket and ServerSocket appear to suffer from similar issue.
Actually, it is closed by the SocketImpl finalizer, but that's too late.
Socket and ServerSocket appear to suffer from similar issue.