From: Hiroshi Nakamura Date: 2011-06-28T21:46:51+09:00 Subject: [ruby-core:37631] [Ruby 1.9 - Bug #4070][Rejected] possible XMLRPC connectino leak Issue #4070 has been updated by Hiroshi Nakamura. Status changed from Assigned to Rejected Shyouhei, I added a comment to the pull request. We can use call_async instead of call for non Keep-Alive TCP connection which is closed per connection. I think that method name is awfully confusing but we don't want to touch xmlrpc lib as far as possible. Taru, I agree with you that :MacClients == 4 is too small. But we have macConnections parameter for configure and it would be enough. I close this ticket as 'Not a Bug'. Please ask me if you think I'm wrong. ---------------------------------------- Bug #4070: possible XMLRPC connectino leak http://redmine.ruby-lang.org/issues/4070 Author: Shyouhei Urabe Status: Rejected Priority: Normal Assignee: Hiroshi Nakamura Category: ext Target version: 1.9.3 ruby -v: ruby 1.9.3dev (2010-11-16 trunk 29806) [x86_64-linux] =begin Hi all. We got a pull request that claims xmlrpc to have a connection leak. http://github.com/ruby/ruby/pull/1 But I'm not sure if the code posted there is a "proper" use of XMLRPC module. XMLRPC::Client instance seems to keep a TCP sessions and can issue many RPC calls from it, no need to recreate instances every time. It seems to me that the reporter's code unnecessarily opens too many TCP sessions at once and acts like a kind of DoS attack to a server. Proposed fix ensures this usage and disables TCP session pooling. Is this a right fix that I can pull into? or should we have a better way? =end -- http://redmine.ruby-lang.org