[ https://issues.apache.org/jira/browse/HTTPCORE-489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16155459#comment-16155459 ]
ASF subversion and git services commented on HTTPCORE-489: ---------------------------------------------------------- Commit 5ea246258b2da559b0645f1ca12cb083948f372e in httpcomponents-core's branch refs/heads/master from [~olegk] [ https://git-wip-us.apache.org/repos/asf?p=httpcomponents-core.git;h=5ea2462 ] HTTPCORE-489: tweak SSL protocol mismatch test case to work around the problem with intermittent failures on Windows > sometimes unit test will failed > ------------------------------- > > Key: HTTPCORE-489 > URL: https://issues.apache.org/jira/browse/HTTPCORE-489 > Project: HttpComponents HttpCore > Issue Type: Test > Components: HttpCore NIO > Affects Versions: 5.0-alpha4 > Environment: windows 7 > jdk:1.8.0_101 > Reporter: silver9886 > Priority: Trivial > Fix For: 5.0-beta1 > > Attachments: SocketException(success case).txt, > SSLHandshakeException(failed case).txt > > > 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. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org For additional commands, e-mail: dev-h...@hc.apache.org