jira-importer opened a new issue, #1013: URL: https://github.com/apache/httpcomponents-core/issues/1013
**[silver9886](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=silver9886)** opened **[HTTPCORE-489](https://issues.apache.org/jira/browse/HTTPCORE-489?redirect=false)** and commented org.apache.hc.core5.ssl.TestSSLContextBuilder.testSSLHanskshakeProtocolMismatch2() sometimes will run failed occasionally. for example, change the branch from master to the other banch,run mvn clean test command, change back to the master run the command,and change to the other branch ,run command twice change back ,run command(just run more times each branch and change to other branch run command several times). Doing steps above for some times, occasionally the unit test failed. out put is like this: Failed tests: TestSSLContextBuilder.testSSLHanskshakeProtocolMismatch2 Expected: an instance of java.net.SocketException but: <javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_ failure> is a javax.net.ssl.SSLHandshakeException Stacktrace was: javax.net.ssl.SSLHandshakeException: Received fatal alert: hands hake_failure the difference exception stack between failed and success test case are in attachment. I don't know if you can Recurrent this bug in your environment.And I am not sure If it is a bug or just something wrong with my environment. If make sure it is a bug,maybe we should except thrown IOException.class when environment is windows and jdk.version > = 1.8. --- **Affects:** 5.0-alpha4 **Attachments:** - [SocketException(success case).txt](https://issues.apache.org/jira/secure/attachment/12885553/SocketException%28success+case%29.txt) (_2.94 kB_) - [SSLHandshakeException(failed case).txt](https://issues.apache.org/jira/secure/attachment/12885554/SSLHandshakeException%28failed+case%29.txt) (_2.76 kB_) -- 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]
