hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcin Kamionowski (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HTTPCLIENT-1588) CloseableHttpClient.execute do not close CloseableHttpResponse
Date Tue, 09 Dec 2014 13:55:12 GMT
Marcin Kamionowski created HTTPCLIENT-1588:
----------------------------------------------

             Summary: CloseableHttpClient.execute do not close CloseableHttpResponse
                 Key: HTTPCLIENT-1588
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1588
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient
    Affects Versions: 4.3.6
            Reporter: Marcin Kamionowski


CloseableHttpClient.execute in line 214 contains:
{code}
final HttpResponse response = execute(target, request, context);
{code}
The response real type is CloseableHttpResponse so it must be closed before returning result
or throwing exception (https://hc.apache.org/httpcomponents-client-ga/quickstart.html)
Currently it only close InputStream returned from HttpEntity.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message