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

   **[James 
Nord](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=jnord_cbs)** 
opened 
**[HTTPCORE-402](https://issues.apache.org/jira/browse/HTTPCORE-402?redirect=false)**
 and commented
   
   If you have a server that will just send Chunked output for streaming then 
it is impossible to close the ChunkedInputStream correctly.
   
   When calling close - it will helpfully try to read until the server sends 
the terminating chuck - but if this is never going to arrive (as is the case 
with Docker and many other servers that send notification updates via chunking) 
 the close method never returns and goes into a loop reading and throwing away 
every single chunk.
   
   Whilst is is a worthy aim of not keeping the connection overhead low - if 
you want to close a stream you want to close it.  Chunks, pipelining or 
anything else don;t matter and you want to close things for a reason.
   
   In this case it prevents users from ever closing a HTTP connection so it is 
never available for re-use in any case.
   
   see https://github.com/docker-java/docker-java/issues/196 for a real life 
example of why this is bad.
   
   
   ---
   
   **Affects:** 4.3.3
   


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