jira-importer opened a new issue, #1370: URL: https://github.com/apache/httpcomponents-core/issues/1370
**[Bernhard Fey](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=JIRAUSER307319)** opened **[HTTPCORE-771](https://issues.apache.org/jira/browse/HTTPCORE-771?redirect=false)** and commented When updating to version 5.4 our tests with Oracle Java 8 fail with the following exception: java.lang.UnsupportedOperationException: method is not supported because of the TLS half-close policy at sun.security.ssl.SSLSocketImpl.shutdownInput(SSLSocketImpl.java:765) at sun.security.ssl.SSLSocketImpl.shutdownInput(SSLSocketImpl.java:743) at org.apache.hc.core5.http.impl.io.BHttpConnectionBase.close(BHttpConnectionBase.java:255) at org.apache.hc.core5.http.impl.io.DefaultBHttpClientConnection.close(DefaultBHttpClientConnection.java:71) at org.apache.hc.client5.http.impl.io.DefaultManagedHttpClientConnection.close(DefaultManagedHttpClientConnection.java:176) at org.apache.hc.core5.pool.PoolEntry.discardConnection(PoolEntry.java:180) at org.apache.hc.core5.pool.StrictConnPool$PerRoutePool.shutdown(StrictConnPool.java:839) at org.apache.hc.core5.pool.StrictConnPool.close(StrictConnPool.java:142) at org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager.close(PoolingHttpClientConnectionManager.java:277) at org.apache.hc.client5.http.impl.classic.InternalHttpClient.close(InternalHttpClient.java:198) at org.apache.hc.client5.http.impl.classic.InternalHttpClient.close(InternalHttpClient.java:188) at J8HttpsErrorTest.main(J8HttpsErrorTest.java:22) I have attached a test class, which fails in Oracle Java 8 with the above exception, but finishes correctly with Java 11 or OpenJDK 8. It has been tested on Windows 10, but the Oracle Java 8 exception also occurs on Linux in our integration. The specific VM the exception was reproduced with is "Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 1.8.0_411-b09". --- **Affects:** 5.3 **Attachments:** - [J8HttpsErrorTest.java](https://issues.apache.org/jira/secure/attachment/13072042/J8HttpsErrorTest.java) (_1.84 kB_) **Backported to:** [5.3.1](https://github.com/apache/httpcomponents-core/milestone/96?closed=1) 0 votes, 5 watchers -- 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]
