hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rola...@apache.org
Subject svn commit: r510051 - /jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java
Date Wed, 21 Feb 2007 15:14:30 GMT
Author: rolandw
Date: Wed Feb 21 07:14:29 2007
New Revision: 510051

URL: http://svn.apache.org/viewvc?view=rev&rev=510051
Log:
slightly revised take on the default port support

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=510051&r1=510050&r2=510051
==============================================================================
--- 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
Wed Feb 21 07:14:29 2007
@@ -135,9 +135,8 @@
         conn.announce(sock);
 
         sock = sf.connectSocket
-            (sock, target.getHostName(), 
-                    target.getPort() == -1 ? schm.getDefaultPort() : target.getPort(), 
-                    local, 0, params);
+            (sock, target.getHostName(), target.resolvePort(),
+             local, 0, params);
         prepareSocket(sock, context, params);
 
         final boolean secure = sf.isSecure(sock);



Mime
View raw message