You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Guido de Caso (JIRA)" <ji...@apache.org> on 2014/11/10 18:42:33 UTC
[jira] [Created] (THRIFT-2810) Do not leave the underlying
ServerSocket open if construction of TServerSocket fails
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)