DefaultHttpRequestRetryHandler.java (httpcomponents-client-4.5.6-src) | : | DefaultHttpRequestRetryHandler.java (httpcomponents-client-4.5.7-src) | ||
---|---|---|---|---|
skipping to change at line 141 | skipping to change at line 141 | |||
final int executionCount, | final int executionCount, | |||
final HttpContext context) { | final HttpContext context) { | |||
Args.notNull(exception, "Exception parameter"); | Args.notNull(exception, "Exception parameter"); | |||
Args.notNull(context, "HTTP context"); | Args.notNull(context, "HTTP context"); | |||
if (executionCount > this.retryCount) { | if (executionCount > this.retryCount) { | |||
// Do not retry if over max retry count | // Do not retry if over max retry count | |||
return false; | return false; | |||
} | } | |||
if (this.nonRetriableClasses.contains(exception.getClass())) { | if (this.nonRetriableClasses.contains(exception.getClass())) { | |||
return false; | return false; | |||
} else { | } | |||
for (final Class<? extends IOException> rejectException : this.nonRe | for (final Class<? extends IOException> rejectException : this.nonRetria | |||
triableClasses) { | bleClasses) { | |||
if (rejectException.isInstance(exception)) { | if (rejectException.isInstance(exception)) { | |||
return false; | return false; | |||
} | ||||
} | } | |||
} | } | |||
final HttpClientContext clientContext = HttpClientContext.adapt(context) ; | final HttpClientContext clientContext = HttpClientContext.adapt(context) ; | |||
final HttpRequest request = clientContext.getRequest(); | final HttpRequest request = clientContext.getRequest(); | |||
if(requestIsAborted(request)){ | if(requestIsAborted(request)){ | |||
return false; | return false; | |||
} | } | |||
if (handleAsIdempotent(request)) { | if (handleAsIdempotent(request)) { | |||
End of changes. 1 change blocks. | ||||
6 lines changed or deleted | 5 lines changed or added |