On Thu, 7 Apr 2022 20:11:25 GMT, Xue-Lei Andrew Fan <xue...@openjdk.org> wrote:

> The socket close() call in the finalize() method may be blocked for the SSL 
> implementation, which is not good for garbage collection. It should be safe 
> by just removing the finalize() method.

Can you provide more detail?  I expected something more like your first attempt 
(`java.lang.ref.Cleaner`) that would properly close/send the close_notify 
message.  Thanks!

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

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

Reply via email to