diff options
author | jeg2 <jeg2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-24 20:00:10 +0000 |
---|---|---|
committer | jeg2 <jeg2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-24 20:00:10 +0000 |
commit | 075e1b426b29635bf5039e5b9222a09866c14679 (patch) | |
tree | 85b67e240b17c99c5b2c023be02c017a185f8469 | |
parent | acd6cfa5b9d83613370f944c253e6f3e2a62ca6e (diff) | |
download | ruby-075e1b426b29635bf5039e5b9222a09866c14679.tar.gz ruby-075e1b426b29635bf5039e5b9222a09866c14679.tar.xz ruby-075e1b426b29635bf5039e5b9222a09866c14679.zip |
* lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Explicitly start
the HTTP connection to support keepalive requests. [ruby-Bugs-9353]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/xmlrpc/client.rb | 3 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Wed Oct 25 04:59:28 2007 James Edward Gray II <jeg2@ruby-lang.org> + + * lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Explicitly start + the HTTP connection to support keepalive requests. [ruby-Bugs-9353] + Wed Oct 25 04:46:53 2007 James Edward Gray II <jeg2@ruby-lang.org> * lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Improving the error diff --git a/lib/xmlrpc/client.rb b/lib/xmlrpc/client.rb index fca0725ed..726945ea3 100644 --- a/lib/xmlrpc/client.rb +++ b/lib/xmlrpc/client.rb @@ -530,6 +530,9 @@ module XMLRPC } else # reuse the HTTP object for each call => connection alive is possible + # we must start connection explicitely first time so that http.request + # does not assume that we don't want keepalive + @http.start if not @http.started? # post request resp = @http.post2(@path, request, header) |