[ 
https://issues.apache.org/jira/browse/THRIFT-1211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mathias Herberts updated THRIFT-1211:
-------------------------------------

    Attachment: THRIFT-1211.patch

> When using THttpClient, non 200 responses leave the connection open
> -------------------------------------------------------------------
>
>                 Key: THRIFT-1211
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1211
>             Project: Thrift
>          Issue Type: Bug
>          Components: Java - Library
>    Affects Versions: 0.6.1
>         Environment: All
>            Reporter: Mathias Herberts
>             Fix For: 0.7
>
>         Attachments: THRIFT-1211.patch
>
>
> The call to HttpClient.execute is done in a try/catch/finally which includes 
> closing of entity's input stream in the finally clause (thus freeing 
> resources).
> The problem is that when the response code is not 200 (OK), an exception is 
> thrown BEFORE the inputstream is retrieved from the response's entity, when 
> executing the finally clause, the resources are not freed as the inputstream 
> is null.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to