[
https://issues.apache.org/jira/browse/HTTPCLIENT-1861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Oleg Kalnichevski resolved HTTPCLIENT-1861.
-------------------------------------------
Resolution: Invalid
{{CloseableHttpClient#execute}} consumes response entity internally when using
{{ResponseHandler}} only. In all other cases the exact strategy of response
handling and resource de-allocation is entirely up to the caller.
Oleg
> Skip consumption of entity for CloseableHTTTPClient
> ---------------------------------------------------
>
> Key: HTTPCLIENT-1861
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1861
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpClient (classic)
> Affects Versions: 4.5.3
> Reporter: Julien Nioche
>
> CloseableHTTTPClient calls EntityUtils.consume(entity) in the execute method,
> however, this can be problematic when fetching endlessly streaming or very
> large content e.g a URL points to a video stream or a ridiculously large file.
> EntityUtils.consume() returns if the entity is not streaming but
> unfortunately there is no way to change the value - and also it's not its
> purpose.
> It would be good to have a way of dealing with cases like these.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]