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:
Oleg Kalnichevski 2010-09-08 20:07:31 +00:00
parent fb038d3500
commit 5c2dacac18
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,10 @@
Changes since 4.1 ALPHA2 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 * [HTTPCLIENT-978] Ehcache based HTTP cache implementation
Contributed by Michajlo Matijkiw <michajlo_matijkiw at comcast.com> Contributed by Michajlo Matijkiw <michajlo_matijkiw at comcast.com>

View File

@ -91,10 +91,6 @@ public class DefaultHttpRequestRetryHandler implements HttpRequestRetryHandler {
// Do not retry if over max retry count // Do not retry if over max retry count
return false; return false;
} }
if (exception instanceof NoHttpResponseException) {
// Retry if the server dropped connection on us
return true;
}
if (exception instanceof InterruptedIOException) { if (exception instanceof InterruptedIOException) {
// Timeout // Timeout
return false; return false;