You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Roman Charushin (JIRA)" <ji...@apache.org> on 2017/12/19 16:22:00 UTC

[jira] [Created] (THRIFT-4431) Repetitive use of HTTPClientTransport causes "Errno::EMFILE: Failed to open TCP connection"

Roman Charushin created THRIFT-4431:
---------------------------------------

             Summary: Repetitive use of HTTPClientTransport causes "Errno::EMFILE: Failed to open TCP connection"
                 Key: THRIFT-4431
                 URL: https://issues.apache.org/jira/browse/THRIFT-4431
             Project: Thrift
          Issue Type: Bug
          Components: Ruby - Library
    Affects Versions: 0.11.0, 0.10.0
            Reporter: Roman Charushin
             Fix For: 0.11.0, 0.10.0


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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)