[
https://issues.apache.org/jira/browse/THRIFT-1211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13053350#comment-13053350
]
Hudson commented on THRIFT-1211:
--------------------------------
Integrated in Thrift #171 (See [https://builds.apache.org/job/Thrift/171/])
> 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
> Assignee: 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