hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1486900 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java
Date Tue, 28 May 2013 12:14:19 GMT
Author: olegk
Date: Tue May 28 12:14:19 2013
New Revision: 1486900

URL: http://svn.apache.org/r1486900
Log:
HTTPCLIENT-1357: Connection upgrade operation does not resolve default port (-1) to a scheme
default value which can lead to a InvalidArgumentException on some platforms

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

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java?rev=1486900&r1=1486899&r2=1486900&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java
Tue May 28 12:14:19 2013
@@ -218,7 +218,7 @@ public class DefaultClientConnectionOper
         Socket sock;
         try {
             sock = lsf.createLayeredSocket(
-                    conn.getSocket(), target.getHostName(), target.getPort(), params);
+                    conn.getSocket(), target.getHostName(), schm.resolvePort(target.getPort()),
params);
         } catch (final ConnectException ex) {
             throw new HttpHostConnectException(target, ex);
         }



Mime
View raw message