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

TNonblockingServer does not release open connections or threads on shutdown

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.1
    • Component/s: C++ - Library
    • Labels:
    • Environment:

      Centos 6.3/Windows 7

    • Patch Info:
      Patch Available

      Description

      TNonblockingServer fails to release active TConnections on shutdown (per comments in the code). An important side effect is that the connection owned resources are not freed, in particular destructor clean up code in user defined service handlers. Also the interdependency between Threads and TNonblockingIOThreads via shared_ptr causes all of these objects to leak. This patch reduces the leaked heap blocks from > 100 to 1 on my test machines using an assortment of threads and terminal connection states.

        Attachments

        1. cppnbserverleak.patch
          3 kB
          Randy Abernethy

          Activity

            People

            • Assignee:
              roger Roger Meier
              Reporter:
              codesf Randy Abernethy
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: