hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Schöning (JIRA) <j...@apache.org>
Subject [jira] [Created] (HTTPCORE-425) TestSSLContextBuilder.testSSLHanskshakeProtocolMismatch2 fails on Windows
Date Wed, 22 Jun 2016 15:45:58 GMT
Thorsten Schöning created HTTPCORE-425:
------------------------------------------

             Summary: 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


{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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message