hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r954283 - /httpcomponents/httpclient/branches/4.0.x/httpclient/src/main/java/org/apache/http/impl/client/DefaultRequestDirector.java
Date Sun, 13 Jun 2010 18:43:27 GMT
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: "



Mime
View raw message