ruby-changes:2278
From: ko1@a...
Date: 25 Oct 2007 05:00:27 +0900
Subject: [ruby-changes:2278] jeg2 - Ruby:r13769 (trunk): * lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Explicitly start
jeg2 2007-10-25 05:00:10 +0900 (Thu, 25 Oct 2007)
New Revision: 13769
Modified files:
trunk/ChangeLog
trunk/lib/xmlrpc/client.rb
Log:
* lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Explicitly start
the HTTP connection to support keepalive requests. [ruby-Bugs-9353]
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/xmlrpc/client.rb?r1=13769&r2=13768
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13769&r2=13768
Index: ChangeLog
===================================================================
--- ChangeLog (revision 13768)
+++ ChangeLog (revision 13769)
@@ -1,3 +1,8 @@
+Wed Oct 25 04:59:28 2007 James Edward Gray II <jeg2@r...>
+
+ * 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@r...>
* lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Improving the error
Index: lib/xmlrpc/client.rb
===================================================================
--- lib/xmlrpc/client.rb (revision 13768)
+++ lib/xmlrpc/client.rb (revision 13769)
@@ -530,6 +530,9 @@
}
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)
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml