"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient/src/main/java/org/apache/http/impl/client/DefaultHttpRequestRetryHandler.java" between
httpcomponents-client-4.5.6-src.tar.gz and httpcomponents-client-4.5.7-src.tar.gz

About: HttpComponents is an Apache project responsible for creating and maintaining a toolset of low level Java components focused on HTTP and associated protocols. Java sources.

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

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)