Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 22567 invoked from network); 23 Mar 2009 10:27:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Mar 2009 10:27:58 -0000 Received: (qmail 89704 invoked by uid 500); 23 Mar 2009 10:27:58 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 89653 invoked by uid 500); 23 Mar 2009 10:27:57 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 89643 invoked by uid 99); 23 Mar 2009 10:27:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Mar 2009 10:27:57 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [217.150.250.44] (HELO ok2consulting.nine.ch) (217.150.250.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Mar 2009 10:27:50 +0000 Received: by ok2consulting.nine.ch (Postfix, from userid 1002) id 7BF71198583; Mon, 23 Mar 2009 11:27:28 +0100 (CET) Received: from [10.14.41.38] (unknown [213.55.131.1]) by ok2consulting.nine.ch (Postfix) with ESMTP id 16599198581 for ; Mon, 23 Mar 2009 11:27:26 +0100 (CET) Subject: Re: HTTP RETRY HANDLER From: Oleg Kalnichevski To: HttpClient User Discussion In-Reply-To: <22656999.post@talk.nabble.com> References: <20090202133540.B737C81601D@nike.apache.org> <1233673930.5642.39.camel@ubuntu> <22656999.post@talk.nabble.com> Content-Type: text/plain Date: Mon, 23 Mar 2009 11:27:22 +0100 Message-Id: <1237804042.7181.5.camel@ubuntu> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on ok2consulting.nine.ch X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.3 On Mon, 2009-03-23 at 02:51 -0700, sveno wrote: > > > olegk wrote: > > > > --- > > DefaultHttpClient httpclient = new DefaultHttpClient(); > > > > httpclient.setHttpRequestRetryHandler(new HttpRequestRetryHandler() { > > > > public boolean retryRequest( > > IOException exception, > > int executionCount, > > HttpContext context) { > > return false; > > } > > > > }); > > --- > > > > Oleg > > > > Can we just have the following line to disable auto retries. > this.objHttp.setHttpRequestRetryHandler(new > DefaultHttpRequestRetryHandler(0, false)); > Yes, you can Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org