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

   **[Tad 
Whitenight](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=twhitenight)**
 opened 
**[HTTPCORE-345](https://issues.apache.org/jira/browse/HTTPCORE-345?redirect=false)**
 and commented
   
   The HttpAsyncContentProducer javadoc does not mention that the 
produceContent method must be called.
   However, the close() method of EntityAsyncContentProducer assumes that the 
produceContent method was previously called.
   Quickly cancelled requests made to an HttpAsyncService can realize this 
scenario and thus leak resources backing response entities.
   
   I discovered this issue in 4.2.4, but am currently reproducing the issue 
with trunk.
   I'll attach a simplified test case shortly.
   
   A possible fix is to check if the channel was never created and close the 
underlying entity in this case.
   
   
   ---
   
   **Affects:** 4.2.4
   
   **Attachments:**
   - 
[EntityAsyncContentProducer.diff](https://issues.apache.org/jira/secure/attachment/12590520/EntityAsyncContentProducer.diff)
 (_1.70 kB_)
   - 
[TestHttpAsyncPrematureTermination.diff](https://issues.apache.org/jira/secure/attachment/12590519/TestHttpAsyncPrematureTermination.diff)
 (_2.50 kB_)
   
   **Backported to:** 
[4.2.5](https://github.com/apache/httpcomponents-core/milestone/28?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