Skip to content

Commit

Permalink
HTTPCLIENT-944: use request execute count instead of total execute co…
Browse files Browse the repository at this point in the history
…unt when retrying requests

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.0.x@954283 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
ok2c committed Jun 13, 2010
1 parent e0780d9 commit b9f63da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ public HttpResponse execute(HttpHost target, HttpRequest request,
} 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: "
Expand Down

0 comments on commit b9f63da

Please sign in to comment.