Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2810

Do not leave the underlying ServerSocket open if construction of TServerSocket fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.1
    • 0.9.3
    • Java - Library
    • None
    • Patch Available

    Description

      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

      Attachments

        Activity

          People

            gdecaso Guido de Caso
            gdecaso Guido de Caso
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: