Github user agherardi commented on the issue:
https://github.com/apache/httpcomponents-core/pull/56
After running some tests, I realized that there isn't a bullet-proof way to
detect EOF without blocking when the server uses chunked encoding. The solution
I came up with only works if the SessionInputBuffer happens to have the chunk
header with size=0 already buffered, and that's not always the case.
Therefore, I believe the best option is for the app - and in make case the
Jersey Apache connector https://github.com/jersey/jersey/pull/3752 - to close
the entity stream before closing the response.
I'm closing this PR. Thank you for your help.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]