[ 
https://issues.apache.org/jira/browse/THRIFT-3243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14627042#comment-14627042
 ] 

ASF GitHub Bot commented on THRIFT-3243:
----------------------------------------

Github user abhinav commented on the pull request:

    https://github.com/apache/thrift/pull/550#issuecomment-121386856
  
    Actually, there's a major problem in that. Fix upcoming.
    



> 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)

Reply via email to