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

   **[Scott 
Stanton](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=stanton)** 
opened 
**[HTTPCORE-319](https://issues.apache.org/jira/browse/HTTPCORE-319?redirect=false)**
 and commented
   
   To reproduce:
   
   * Set up an SSL server that requests certificates from the client.
   * Set up a client with an expired SSL certificate.
   * Establish a connection from the client to the server using BaseNIOReactor 
and SSLIOSession.
   
   The server will proceed through the handshake until the client supplies its 
certificate in response to the CertificateRequest message.  At this point, the 
server's certificate verification will fail and it will close the connection.
   
   The client socket will become readable due to the EOF and the 
SSLIOSession.isAppInputReady() method is called to handle the EOF.  The 
bytesRead gets set to -1, which sets this.endOfStream = true.  Nothing ever 
sets the session into the CLOSING or CLOSED state, so it keeps looping on the 
readable EOF event.
   
   I'm not sure what the best approach to fixing this should be.  It appears 
that if I close the session manually with the debugger from inside 
isAppInputReady, the system proceeds normally from that point, however I don't 
know what the implications of doing that might be.
   
   
   ---
   
   **Affects:** 4.2.2
   
   **Attachments:**
   - 
[bug.log](https://issues.apache.org/jira/secure/attachment/12559917/bug.log) 
(_7.36 kB_)
   - [log](https://issues.apache.org/jira/secure/attachment/12555294/log) 
(_5.69 kB_)
   
   **Issue Links:**
   - [HTTPCORE-322](https://issues.apache.org/jira/browse/HTTPCORE-322) 
SSLIOSession infinite loop after alert during handshake
   
   
   **Backported to:** 
[4.2.4](https://github.com/apache/httpcomponents-core/milestone/27?closed=1)
   


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