On Fri, 8 Apr 2022 22:55:07 GMT, Bradford Wetmore <wetm...@openjdk.org> wrote:

> @AlanBateman, @dfuch, @bchristi-git, any great ideas here?

As you have found, if an open Socket is unreferenced then a cleaner can close 
the underlying socket (and release the file descriptor). The Cleaner is setup 
by the SocketImpl implementation.

What is the existing behavior with the BaseSSLSocketImpl finalizer? Does it 
just close the socket or does it to the close_notify before closing the socket. 
If it does, and you want to keep that behavior, then you are probably into 
significant refactoring to avoid a reference to the BaseSSLSocketImpl.

-------------

PR: https://git.openjdk.java.net/jdk/pull/8065

Reply via email to