* lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Explicitly start
the HTTP connection to support keepalive requests. [ruby-Bugs-9353] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6f8537cf7f
commit
7e2c0cbda2
@ -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>
|
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
|
* lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Improving the error
|
||||||
|
@ -530,6 +530,9 @@ module XMLRPC
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
# reuse the HTTP object for each call => connection alive is possible
|
# 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
|
# post request
|
||||||
resp = @http.post2(@path, request, header)
|
resp = @http.post2(@path, request, header)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user