GitHub user xiaosuo opened a pull request: https://github.com/apache/thrift/pull/1210
Fix fd leak when failing to dispatch new connections 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. You can merge this pull request into a Git repository by running: $ git pull https://github.com/xiaosuo/thrift fd_leak Alternatively you can review and apply these changes as the patch at: https://github.com/apache/thrift/pull/1210.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1210 ---- commit 7e067d0464e1a4ee8c6c5d1899a7aa3e6ecfdce1 Author: Changli Gao <xiao...@gmail.com> Date: 2017-03-10T05:15:37Z Fix fd leak when failing to dispatch new connections 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. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---