hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r934218 - /httpcomponents/httpclient/branches/4.0.x/httpclient/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java
Date Wed, 14 Apr 2010 22:08:54 GMT
Author: olegk
Date: Wed Apr 14 22:08:54 2010
New Revision: 934218

URL: http://svn.apache.org/viewvc?rev=934218&view=rev
Log:
Bug fix

Modified:
    httpcomponents/httpclient/branches/4.0.x/httpclient/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java

Modified: httpcomponents/httpclient/branches/4.0.x/httpclient/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/branches/4.0.x/httpclient/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java?rev=934218&r1=934217&r2=934218&view=diff
==============================================================================
--- httpcomponents/httpclient/branches/4.0.x/httpclient/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java
(original)
+++ httpcomponents/httpclient/branches/4.0.x/httpclient/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java
Wed Apr 14 22:08:54 2010
@@ -126,7 +126,7 @@ public class DefaultClientConnectionOper
         InetAddress[] addresses = InetAddress.getAllByName(target.getHostName());
         for (int i = 0; i < addresses.length; i++) {
             InetAddress address = addresses[i];
-            boolean last = i == addresses.length;
+            boolean last = i == addresses.length - 1;
             Socket sock = sf.createSocket();
             conn.opening(sock, target);
             try {



Mime
View raw message