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

   
**[Marcono1234](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=marcono1234)**
 opened 
**[HTTPCORE-656](https://issues.apache.org/jira/browse/HTTPCORE-656?redirect=false)**
 and commented
   
   Could the documentation of `org.apache.http.HttpEntity.getContent()` please 
be improved to explicitly mention that calling `close()` on the returned 
`InputStream` will try to consume the remaining entity content?
   
   This is mentioned in the 
[tutorial](https://hc.apache.org/httpcomponents-client-4.4.x/tutorial/html/fundamentals.html#d5e145),
 but the javadoc only contains an "IMPORTANT" section which seems to be 
addressed to implementers, but not users. Maybe it would also be good to 
additionally link to the tutorial from the documentation of the method.
   
   It appears the documentation not being explicit about this might be the 
reason for [HTTPCORE-402](https://issues.apache.org/jira/browse/HTTPCORE-402) 
and other issues users are having when `close()` is blocking for them.
   
   
   ---
   
   **Backported to:** 
[5.1-beta3](https://github.com/apache/httpcomponents-core/milestone/80?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