Return-Path: Delivered-To: apmail-hc-commits-archive@www.apache.org Received: (qmail 42761 invoked from network); 30 Oct 2008 13:56:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Oct 2008 13:56:46 -0000 Received: (qmail 47877 invoked by uid 500); 30 Oct 2008 13:56:52 -0000 Delivered-To: apmail-hc-commits-archive@hc.apache.org Received: (qmail 47857 invoked by uid 500); 30 Oct 2008 13:56:51 -0000 Mailing-List: contact commits-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list commits@hc.apache.org Received: (qmail 47848 invoked by uid 99); 30 Oct 2008 13:56:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Oct 2008 06:56:51 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Oct 2008 13:55:45 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E83C523888F1; Thu, 30 Oct 2008 06:56:25 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r709159 - in /httpcomponents/httpclient/trunk: RELEASE_NOTES.txt module-client/src/main/java/org/apache/http/impl/client/DefaultHttpRequestRetryHandler.java Date: Thu, 30 Oct 2008 13:56:25 -0000 To: commits@hc.apache.org From: olegk@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20081030135625.E83C523888F1@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: olegk Date: Thu Oct 30 06:56:25 2008 New Revision: 709159 URL: http://svn.apache.org/viewvc?rev=709159&view=rev Log: HTTPCLIENT-806: DefaultHttpMethodRetryHandler will no longer retry on ConnectExceptions Modified: httpcomponents/httpclient/trunk/RELEASE_NOTES.txt httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/client/DefaultHttpRequestRetryHandler.java Modified: httpcomponents/httpclient/trunk/RELEASE_NOTES.txt URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/RELEASE_NOTES.txt?rev=709159&r1=709158&r2=709159&view=diff ============================================================================== --- httpcomponents/httpclient/trunk/RELEASE_NOTES.txt (original) +++ httpcomponents/httpclient/trunk/RELEASE_NOTES.txt Thu Oct 30 06:56:25 2008 @@ -1,6 +1,10 @@ Changes since 4.0 beta 1 ------------------- +* [HTTPCLIENT-806] DefaultHttpMethodRetryHandler will no longer retry + on ConnectExceptions. + Contributed by Oleg Kalnichevski + * DigestScheme can use an arbitrary digest algorithm requested by the target server (such SHA) as long as this algorithm is supported by the Java runtime. Modified: httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/client/DefaultHttpRequestRetryHandler.java URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/client/DefaultHttpRequestRetryHandler.java?rev=709159&r1=709158&r2=709159&view=diff ============================================================================== --- httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/client/DefaultHttpRequestRetryHandler.java (original) +++ httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/client/DefaultHttpRequestRetryHandler.java Thu Oct 30 06:56:25 2008 @@ -33,6 +33,7 @@ import java.io.IOException; import java.io.InterruptedIOException; +import java.net.ConnectException; import java.net.UnknownHostException; import javax.net.ssl.SSLHandshakeException; @@ -101,6 +102,10 @@ // Unknown host return false; } + if (exception instanceof ConnectException) { + // Connection refused + return false; + } if (exception instanceof SSLHandshakeException) { // SSL handshake exception return false;