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

TNonblockingServer does not release open connections or threads on shutdown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.1
    • C++ - Library
    • Centos 6.3/Windows 7

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: