Works like a charm. I've verified reply timeout and connection timeout. I guess I made a wrong assumption when pointing out the error in XmlRpcSunHttpTransport instead of XmlRpcSun15HttpTransport. The reason was that I used an older version of XMLRPC where the XmlRpcSun15HttpTransport hadn't been introduced yet and when I looked in the subversion repository, the timeout wasn't corrected in the XmlRpcSunHttpTransport class. I suppose the patch should be placed in the Java 1.5 specific class as you point out.
Best regards Lars Gråmark ----- Original Message ----- From: Jochen Wiedmann <jochen.wiedm...@gmail.com> Sent: Wed, 2009/9/9 10:58 To: xmlrpc-dev@ws.apache.org Subject: Re: XmlRpcSunHttpTransport and read timeout Try adding the following method to the XmlRpcSun15HttpTransport and let me know, whether that works. Jochen protected void initHttpHeaders(XmlRpcRequest pRequest) throws XmlRpcClientException { final XmlRpcHttpClientConfig config = (XmlRpcHttpClientConfig) pRequest.getConfig(); int connectionTimeout = config.getConnectionTimeout(); if (connectionTimeout > 0) { getURLConnection().setConnectTimeout(connectionTimeout); } int replyTimeout = config.getReplyTimeout(); if (replyTimeout > 0) { getURLConnection().setReadTimeout(replyTimeout); } super.initHttpHeaders(pRequest); } -- Germanys national anthem is the most boring in the world - how telling!