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

TSSLSocket::close should handle exceptions from waitForEvent because it is called by the destructor.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.10.0
    • Component/s: None
    • Labels:
      None

      Description

      ~TSSLSocket calls TSSLSocket::close, which calls TSSLSocket::waitForEvent.

      TSSLSocket::waitForEvent() throws an exception in some cases:

      • Unexpected error
      • InterruptListener has been written to
      • poll() times out

      TSSLSocket::close should log the error but not emit an exception, similar to how it handles errors from SSL_shutdown.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jking3 James E. King III
                Reporter:
                tewang Ted Wang
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: