You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlrpc-auto@ws.apache.org by jo...@apache.org on 2006/08/25 08:50:25 UTC

svn commit: r436682 - /webservices/xmlrpc/trunk/client/src/main/java/org/apache/xmlrpc/client/XmlRpcLiteHttpTransport.java

Author: jochen
Date: Thu Aug 24 23:50:25 2006
New Revision: 436682

URL: http://svn.apache.org/viewvc?rev=436682&view=rev
Log:
Fixed that the method newSocket() wasn't actually usable.

Modified:
    webservices/xmlrpc/trunk/client/src/main/java/org/apache/xmlrpc/client/XmlRpcLiteHttpTransport.java

Modified: webservices/xmlrpc/trunk/client/src/main/java/org/apache/xmlrpc/client/XmlRpcLiteHttpTransport.java
URL: http://svn.apache.org/viewvc/webservices/xmlrpc/trunk/client/src/main/java/org/apache/xmlrpc/client/XmlRpcLiteHttpTransport.java?rev=436682&r1=436681&r2=436682&view=diff
==============================================================================
--- webservices/xmlrpc/trunk/client/src/main/java/org/apache/xmlrpc/client/XmlRpcLiteHttpTransport.java (original)
+++ webservices/xmlrpc/trunk/client/src/main/java/org/apache/xmlrpc/client/XmlRpcLiteHttpTransport.java Thu Aug 24 23:50:25 2006
@@ -131,7 +131,7 @@
 	
 			for (int tries = 0;  ;  tries++) {
 				try {
-					socket = newSocket();
+					socket = newSocket(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.
@@ -164,8 +164,8 @@
 		}
 	}
 
-    protected Socket newSocket() throws UnknownHostException, IOException {
-        return new Socket(hostname, port);
+    protected Socket newSocket(String pHostName, int pPort) throws UnknownHostException, IOException {
+        return new Socket(pHostName, pPort);
     }
 
 	private byte[] toHTTPBytes(String pValue) throws UnsupportedEncodingException {