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

   **[Sandeep 
Tamhankar](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=sandman)**
 opened 
**[HTTPCORE-298](https://issues.apache.org/jira/browse/HTTPCORE-298?redirect=false)**
 and commented
   
   Under heavy load, I've observed my application call SSLIOSession.isClosed() 
to decide if the connection can be reused for a pending outbound request. It 
returns false. However, the underlying IOSessionImpl is actually closed. I 
believe that AbstractIOReactor also holds a reference to that underlying 
IOSession and it can be independently closed from that end.
   
   My proposed fix is simple (and very non-invasive, but possibly not correct 
in that I don't have the SSLIOSession update its state upon discovering that 
the underlying IOSession is closed): update SSLIOSession.isClosed as followed:
   public boolean isClosed() {
   return this.status >= CLOSING || this.session.isClosed();
   }
   
   
   ---
   
   **Affects:** 4.1.4
   


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