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

TServerFramework::stop may fail to interrupt connected clients

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.3
    • 0.10.0
    • C++ - Library
    • None
    • Patch Available

    Description

      This is a sequence that exposes the race condition:
      (1) Thread-1: in serve(), blocked on accept()
      (2) Thread-2: in stop(), calls interrupt()
      (3) Thread-2: in stop(), in interruptChildren(), checked that socket is valid
      (4) Thread-1: in serve(), unblocked because of interrupt(), calls releaseOneDescriptor
      (5) Thread-2: in interruptChildren(), send fails so clients are not interrupted

      Attachments

        Issue Links

          Activity

            People

              tewang Ted Wang
              tewang Ted Wang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: