jira-importer opened a new issue, #1454:
URL: https://github.com/apache/httpcomponents-core/issues/1454

   **[Thorsten 
Schöning](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=tschoening)**
 opened 
**[HTTPCORE-425](https://issues.apache.org/jira/browse/HTTPCORE-425?redirect=false)**
 and commented
   
   {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.
   
   
   ---
   
   **Affects:** 4.4.5
   
   **Attachments:**
   - 
[TestSSLContextBuilder.java.patch](https://issues.apache.org/jira/secure/attachment/12812769/TestSSLContextBuilder.java.patch)
 (_2.09 kB_)
   - [TestSSLContextBuilder.java 
localhost.patch](https://issues.apache.org/jira/secure/attachment/12812770/TestSSLContextBuilder.java+localhost.patch)
 (_751 bytes_)
   


-- 
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]

Reply via email to