[
https://issues.apache.org/jira/browse/HTTPCORE-425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thorsten Schöning closed HTTPCORE-425.
--------------------------------------
Verified, tests pass. Thanks.
> TestSSLContextBuilder.testSSLHanskshakeProtocolMismatch2 fails on Windows
> -------------------------------------------------------------------------
>
> Key: HTTPCORE-425
> URL: https://issues.apache.org/jira/browse/HTTPCORE-425
> Project: HttpComponents HttpCore
> Issue Type: Bug
> Components: HttpCore
> Affects Versions: 4.4.5
> Environment: Windows 8.1 x64 Prof
> Reporter: Thorsten Schöning
> Fix For: 4.4.6
>
> Attachments: TestSSLContextBuilder.java localhost.patch,
> TestSSLContextBuilder.java.patch
>
>
> {CODE}
> java.lang.Exception: Unexpected exception,
> expected<javax.net.ssl.SSLHandshakeException> but
> was<java.net.SocketException>
> at java.net.SocketInputStream.socketRead0(Native Method)
> at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
> at java.net.SocketInputStream.read(SocketInputStream.java:170)
> at java.net.SocketInputStream.read(SocketInputStream.java:141)
> at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
> at sun.security.ssl.InputRecord.read(InputRecord.java:503)
> at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
> at
> sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
> at
> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
> at
> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
> at
> org.apache.http.ssl.TestSSLContextBuilder.testSSLHanskshakeProtocolMismatch2(TestSSLContextBuilder.java:603)
> {CODE}
> As mentioned on the mailing list, there's a fix for this available on trunk.
> Would you please consider backporting this to other branches? Thanks!
> Don't know if this is related or not, but the following line would better use
> "localhost" in my opinion:
> > serverSocket.bind(new InetSocketAddress(0));
> Simply for security reasons, no other access is made later, only a
> connection from localhost to localhost.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]