You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Abhinav Gupta (JIRA)" <ji...@apache.org> on 2015/07/14 23:23:04 UTC
[jira] [Closed] (THRIFT-3243) Possible socket leak in THttpClient
[ https://issues.apache.org/jira/browse/THRIFT-3243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Abhinav Gupta closed THRIFT-3243.
---------------------------------
Resolution: Invalid
Technically not a bug after all. The open connection is used to read body by the protocol. The caller should close the transport when they're done. Closing as invalid.
> Possible socket leak in THttpClient
> -----------------------------------
>
> Key: THRIFT-3243
> URL: https://issues.apache.org/jira/browse/THRIFT-3243
> Project: Thrift
> Issue Type: Bug
> Components: Python - Library
> Reporter: Abhinav Gupta
> Priority: Minor
>
> In THttpClient, the system does not close an HTTP connection until a consecutive request is made:
> def flush(self):
> if self.isOpen():
> self.close()
> self.open()
> If the THttpClient is discarded right after making a request, it will leave the connection open until it's garbage collected. It will be safer to close the connection after making the request.
> Pull request upcoming.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)