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

Hudson commented on THRIFT-2810:
--------------------------------

SUCCESS: Integrated in Thrift #1342 (See 
[https://builds.apache.org/job/Thrift/1342/])
THRIFT-2810: java - clean-up resources on error in TServerSocket constructor 
(hcorg: rev 1cf9612a7064cc1676f242eaa70af201793e390e)
* lib/java/src/org/apache/thrift/transport/TServerSocket.java


> 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