HTTPCLIENT-989: DefaultHttpRequestRetryHandler no longer retries non-idempotent http methods if NoHttpResponseException is thrown
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@995236 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fb038d3500
commit
5c2dacac18
|
@ -1,6 +1,10 @@
|
|||
Changes since 4.1 ALPHA2
|
||||
-------------------
|
||||
|
||||
* [HTTPCLIENT-989] DefaultHttpRequestRetryHandler no longer retries non-idempotent http methods
|
||||
if NoHttpResponseException is thrown.
|
||||
Contributed by Oleg Kalnichevski <olegk at apache.org>
|
||||
|
||||
* [HTTPCLIENT-978] Ehcache based HTTP cache implementation
|
||||
Contributed by Michajlo Matijkiw <michajlo_matijkiw at comcast.com>
|
||||
|
||||
|
|
|
@ -91,10 +91,6 @@ public class DefaultHttpRequestRetryHandler implements HttpRequestRetryHandler {
|
|||
// Do not retry if over max retry count
|
||||
return false;
|
||||
}
|
||||
if (exception instanceof NoHttpResponseException) {
|
||||
// Retry if the server dropped connection on us
|
||||
return true;
|
||||
}
|
||||
if (exception instanceof InterruptedIOException) {
|
||||
// Timeout
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue