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

C++ TNonblockingServer fd leak when failing to dispatch new connections

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9.3, 0.10.0
    • 0.11.0
    • C++ - Library
    • None

    Description

      In THRIFT-2789 the error handling for connections where notify fails leaks a file descriptor.

      This was reported and fixed in a pull request without an Apache Jira entry:

      https://github.com/apache/thrift/pull/1210/files

      When failing to dispatch new connections to other IO threads other
      than the number 0, we returned these connections for reuse without
      closing them, so the corresponding fds were leaked forever.

      We should close these connections instead.

      Attachments

        Issue Links

          Activity

            People

              jking3 James E. King III
              jking3 James E. King III
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: