jira-importer opened a new issue, #1252: URL: https://github.com/apache/httpcomponents-core/issues/1252
**[Arun Katkere](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=JIRAUSER299591)** opened **[HTTPCORE-749](https://issues.apache.org/jira/browse/HTTPCORE-749?redirect=false)** and commented When SSLEngine implementation is old and does not override getApplicationProtocol from SSLEngine, HttpClient async fails with: java.lang.UnsupportedOperationException at javax.net.ssl.SSLEngine.getApplicationProtocol(SSLEngine.java:1283) at org.apache.hc.core5.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:429) at org.apache.hc.core5.reactor.ssl.SSLIOSession.access$100(SSLIOSession.java:74) at org.apache.hc.core5.reactor.ssl.SSLIOSession$1.inputReady(SSLIOSession.java:201) at org.apache.hc.core5.reactor.InternalDataChannel.onIOEvent(InternalDataChannel.java:142) at org.apache.hc.core5.reactor.InternalChannel.handleIOEvent(InternalChannel.java:51) at org.apache.hc.core5.reactor.SingleCoreIOReactor.processEvents(SingleCoreIOReactor.java:178) at org.apache.hc.core5.reactor.SingleCoreIOReactor.doExecute(SingleCoreIOReactor.java:127) at org.apache.hc.core5.reactor.AbstractSingleCoreIOReactor.execute(AbstractSingleCoreIOReactor.java:86) at org.apache.hc.core5.reactor.IOReactorWorker.run(IOReactorWorker.java:44) at java.lang.Thread.run(Thread.java:750) Instead, SSLIOSession should catch UnsupportedOperationException from getApplicationProtocol call and fall back to HTTP1_1. getApplicationProtocol was added in a later version of Java 8, and not all SSL libraries support it. tlsDetailsFactory from DefaultClientTlsStrategy can be potentially used to work around this, but it is deprecated. --- **Affects:** 5.2.1 **Backported to:** [5.2.2](https://github.com/apache/httpcomponents-core/milestone/88?closed=1) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
