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

   **[Asankha Chamath 
Perera](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=asankha)** 
opened 
**[HTTPCORE-193](https://issues.apache.org/jira/browse/HTTPCORE-193?redirect=false)**
 and commented
   
   This could be seen on the SunOS machine Hudson, and also if a breakpoint is 
placed at the line receiveEncryptedData() in SSLIOSession:isAppInputReady() to 
delay its execution slightly
   
   It seems like the following lines are the cause of the problem:
   
       int bytesRead = receiveEncryptedData();
       if (bytesRead == -1) {
           this.status = CLOSED;
       }
   
   The Channel not having any more bytes does not indicate a close, since there 
still could be unencrypted data. Just removing the lines that mark the session 
as closed seems to fix the issue - but should be reviewed.
   
   
   ---
   
   **Affects:** 4.0
   
   **Attachments:**
   - 
[HTTPCORE-193.patch](https://issues.apache.org/jira/secure/attachment/12402486/HTTPCORE-193.patch)
 (_1.61 kB_)
   - 
[HTTPCORE-193.patch](https://issues.apache.org/jira/secure/attachment/12402443/HTTPCORE-193.patch)
 (_729 bytes_)
   - 
[linux.log](https://issues.apache.org/jira/secure/attachment/12402479/linux.log)
 (_8.00 kB_)
   - 
[solaris.log](https://issues.apache.org/jira/secure/attachment/12402478/solaris.log)
 (_4.99 kB_)
   


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