[kaffe] Sockets remain unclosed

Ito Kazumitsu ito.kazumitsu@hitachi-cable.co.jp
Tue Apr 6 17:09:05 2004


In message "Re: [kaffe] Sockets remain unclosed"
    on 04/04/06, Helmer =?ISO-8859-15?Q?Kr=E4mer?= <hkraemer@freenet.de> writes:

> java.net.ServerSocket.accept() eventually calls
> impl.accept (socket.getImpl()), where "socket"
> is the java.net.Socket instance returned by the
> accept() call.
> 
> java.net.Socket.getImpl() however calls impl.create(),
> which opens the new fd that never gets closed,
> since all references to it get overwritten in
> the impl.accept() call.
> 
> Easiest way to fix this might be something like the
> attached patch.

Thank you for the patch. It works fine for me.