Re: SSLSocket HandshakeCompletionListener Threading

2020-09-18 Thread Xuelei Fan
I'm not sure if it really worthy of new APIs. Old applications cannot benefit from new APIs. Let's see if the Loom project could meet the performance requirements firstly. Xuelei On 9/18/2020 11:09 AM, Carter Kozak wrote: Thanks Xuelei, As someone who primarily produces libraries consumed

Re: SSLSocket HandshakeCompletionListener Threading

2020-09-18 Thread Bernd Eckenfels
: Xuelei Fan ; Bradford Wetmore ; security-dev@openjdk.java.net Betreff: Re: SSLSocket HandshakeCompletionListener Threading Thanks Xuelei, As someone who primarily produces libraries consumed across many projects I would prefer not to use global jvm state. I worry that a global property

Re: SSLSocket HandshakeCompletionListener Threading

2020-09-18 Thread Carter Kozak
Thanks Xuelei, As someone who primarily produces libraries consumed across many projects I would prefer not to use global jvm state. I worry that a global property requires administrators to have knowledge of every HandshakeCompletedListener that is used, and library authors have limited abilit

Re: SSLSocket HandshakeCompletionListener Threading

2020-09-17 Thread Xuelei Fan
I thought more about the problem. I could see the performance improvement requirements for heavy loaded system. But it may not worthy of a complicated proposal, as the Loom feature could mitigate the impact. Maybe, a new system property could be defined, for example, "jdk.tls.server/client.h

Re: SSLSocket HandshakeCompletionListener Threading

2020-09-16 Thread Bradford Wetmore
From a coding point of view, if Xuelei doesn't have a further suggestion, using virtual threads like you have suggested seems to be a good solution. I'm ok with this change for Project Loom. Loom has a lot of promise for things like this. I've never been thrilled with the threading of the H

Re: SSLSocket HandshakeCompletionListener Threading

2020-09-16 Thread Xuelei Fan
Good catch! Alternatively, I was wondering if it is possible to delegate the job to listeners, without modify the APIs, for example by implementing a Runnable interface (not a proposal, just a guess for now). I don't like the creation of threads in the JSSE provider, as application could take