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/06/13 20:43:27 UTC

svn commit: r954283 - /httpcomponents/httpclient/branches/4.0.x/httpclient/src/main/java/org/apache/http/impl/client/DefaultRequestDirector.java

Author: olegk
Date: Sun Jun 13 18:43:27 2010
New Revision: 954283

URL: http://svn.apache.org/viewvc?rev=954283&view=rev
Log:
HTTPCLIENT-944: use request execute count instead of total execute count when retrying requests

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

Modified: httpcomponents/httpclient/branches/4.0.x/httpclient/src/main/java/org/apache/http/impl/client/DefaultRequestDirector.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/branches/4.0.x/httpclient/src/main/java/org/apache/http/impl/client/DefaultRequestDirector.java?rev=954283&r1=954282&r2=954283&view=diff
==============================================================================
--- httpcomponents/httpclient/branches/4.0.x/httpclient/src/main/java/org/apache/http/impl/client/DefaultRequestDirector.java (original)
+++ httpcomponents/httpclient/branches/4.0.x/httpclient/src/main/java/org/apache/http/impl/client/DefaultRequestDirector.java Sun Jun 13 18:43:27 2010
@@ -486,7 +486,7 @@ public class DefaultRequestDirector impl
                     } catch (IOException ex) {
                         this.log.debug("Closing the connection.");
                         managedConn.close();
-                        if (retryHandler.retryRequest(ex, execCount, context)) {
+                        if (retryHandler.retryRequest(ex, wrapper.incrementExecCount(), context)) {
                             if (this.log.isInfoEnabled()) {
                                 this.log.info("I/O exception ("+ ex.getClass().getName() + 
                                         ") caught when processing request: "