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

Repetitive use of HTTPClientTransport causes "Errno::EMFILE: Failed to open TCP connection"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 0.10.0, 0.11.0
    • 0.10.0, 0.11.0
    • Ruby - Library
    • None

    Description

      Repetitive calls to the clients initiated with the HTTPClientTransport causes "Errno::EMFILE: Failed to open TCP connection" error due to too many open files. And the reason is that each time client is called new http connection is created at each flush and is never finished after, holding the file descriptors to tcp connection files.

      In order to solve this HTTP#finish should be called in ensure block of HTTPClientTransport#flush.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lompy Roman Charushin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: