Index: /home/oleg/src/apache.org/jakarta-commons/httpclient-trunk/src/java/org/apache/commons/httpclient/DefaultHttpMethodRetryHandler.java =================================================================== --- /home/oleg/src/apache.org/jakarta-commons/httpclient-trunk/src/java/org/apache/commons/httpclient/DefaultHttpMethodRetryHandler.java (revision 264823) +++ /home/oleg/src/apache.org/jakarta-commons/httpclient-trunk/src/java/org/apache/commons/httpclient/DefaultHttpMethodRetryHandler.java (working copy) @@ -91,6 +91,12 @@ if (exception == null) { throw new IllegalArgumentException("Exception parameter may not be null"); } + // HttpMethod interface is the WORST thing ever done to HttpClient + if (method instanceof HttpMethodBase) { + if (((HttpMethodBase)method).isAborted()) { + return false; + } + } if (executionCount > this.retryCount) { // Do not retry if over max retry count return false;