hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mbe...@apache.org
Subject svn commit: r509901 - /jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java
Date Wed, 21 Feb 2007 05:48:46 GMT
Author: mbecke
Date: Tue Feb 20 21:48:46 2007
New Revision: 509901

URL: http://svn.apache.org/viewvc?view=rev&rev=509901
Log:
Added support for creating socks with the Scheme default port.

Modified:
    jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java

Modified: jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java?view=diff&rev=509901&r1=509900&r2=509901
==============================================================================
--- jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java
(original)
+++ jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java
Tue Feb 20 21:48:46 2007
@@ -135,7 +135,9 @@
         conn.announce(sock);
 
         sock = sf.connectSocket
-            (sock, target.getHostName(), target.getPort(), local, 0, params);
+            (sock, target.getHostName(), 
+                    target.getPort() == -1 ? schm.getDefaultPort() : target.getPort(), 
+                    local, 0, params);
         prepareSocket(sock, context, params);
 
         final boolean secure = sf.isSecure(sock);



Mime
View raw message