You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2010/04/15 00:08:54 UTC

svn commit: r934218 - /httpcomponents/httpclient/branches/4.0.x/httpclient/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java

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 {