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

Konrad Grochowski commented on THRIFT-2810:
-------------------------------------------

https://github.com/apache/thrift/pull/258 (no ide why bot automagically didn't 
make this comment...)

> Do not leave the underlying ServerSocket open if construction of 
> TServerSocket fails
> ------------------------------------------------------------------------------------
>
>                 Key: THRIFT-2810
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2810
>             Project: Thrift
>          Issue Type: Bug
>          Components: Java - Library
>    Affects Versions: 0.9.1
>            Reporter: Guido de Caso
>            Assignee: Guido de Caso
>             Fix For: 0.9.3
>
>
> If construction of a TServerSocket fails the underlying ServerSocket object 
> may already have been initialized. Since the reference is nullified, we loose 
> the opportunity to properly close it. This fix addresses the issue by always 
> cleaning up after failures during construction.
> Additionally, the failure message is added to the exception for improved 
> visibility of what went wrong



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

Reply via email to