Guido de Caso created THRIFT-2810:
-------------------------------------

             Summary: 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


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