--- client/src/main/java/org/apache/xmlrpc/client/XmlRpcLiteHttpTransport.java 2006-07-12 22:50:38.000000000 +0200 +++ client/src/main/java/org/apache/xmlrpc/client/X.java 2006-08-24 16:55:09.000000000 +0200 @@ -121,6 +121,10 @@ throw new XmlRpcClientException("Failed to close connection: " + e.getMessage(), e); } } + + protected Socket createSocket(String hostname, int port) throws IOException { + return new Socket(hostname, port); + } private OutputStream getOutputStream() throws XmlRpcException { try { @@ -129,7 +133,7 @@ for (int tries = 0; ; tries++) { try { - socket = new Socket(hostname, port); + socket = createSocket(hostname, port); output = new BufferedOutputStream(socket.getOutputStream()){ /** Closing the output stream would close the whole socket, which we don't want, * because the don't want until the request is processed completely.