[13] RFR: 8217094: HttpClient SSL race if a socket IOException is raised before ALPN is available

Daniel Fuchs daniel.fuchs at oracle.com
Tue Jan 15 16:52:26 UTC 2019


Hi,

Please find below a fix for:

8217094: HttpClient SSL race if a socket IOException is raised
          before ALPN is available
https://bugs.openjdk.java.net/browse/JDK-8217094

webrev:
http://cr.openjdk.java.net/~dfuchs/webrev_8217094/webrev.00/

While investigating another test I stumbled on a race condition in the 
SSLTube/SSLFlowDelegate: if an IOException is raised at the lower level 
(socket) before the ALPN is available the ALPN CF may never be 
completed, and as a result the connection may be stuck.

The patch ensure that the ALPN CF will always get completed.

best regards,

-- daniel


More information about the net-dev mailing list