You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlrpc-dev@ws.apache.org by ha...@apache.org on 2002/03/04 16:13:01 UTC
cvs commit: xml-rpc/src/java/org/apache/xmlrpc XmlRpcClientLite.java
hannes 02/03/04 07:13:01
Modified: src/java/org/apache/xmlrpc XmlRpcClientLite.java
Log:
Applied fixes from Jim Redman <ji...@ergotech.com> for HTTP keep-alive code.
Due to bugs introduced in the last modification,
� Exceptions that happened when sending the request or reading the response
headers were not propagated properly when keep-alive was switched off
� An HttpClient instance with a closed connection was used starting the second
time a client/worker instance was used.
Revision Changes Path
1.5 +5 -1 xml-rpc/src/java/org/apache/xmlrpc/XmlRpcClientLite.java
Index: XmlRpcClientLite.java
===================================================================
RCS file: /home/cvs/xml-rpc/src/java/org/apache/xmlrpc/XmlRpcClientLite.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- XmlRpcClientLite.java 27 Feb 2002 18:29:19 -0000 1.4
+++ XmlRpcClientLite.java 4 Mar 2002 15:13:01 -0000 1.5
@@ -171,6 +171,8 @@
client.closeConnection ();
client.initConnection ();
in = client.sendRequest (request);
+ } else {
+ throw iox;
}
}
@@ -178,8 +180,10 @@
parse (in);
// client keepalive is always false if XmlRpc.keepalive is false
- if (!client.keepalive)
+ if (!client.keepalive) {
client.closeConnection ();
+ client = null;
+ }
if (debug)
System.err.println ("result = "+result);