Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 97201 invoked from network); 9 Dec 2004 11:09:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Dec 2004 11:09:16 -0000 Received: (qmail 60933 invoked by uid 500); 9 Dec 2004 11:08:00 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 60871 invoked by uid 500); 9 Dec 2004 11:07:58 -0000 Mailing-List: contact httpclient-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: "HttpClient User Discussion" Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-user@jakarta.apache.org Received: (qmail 60797 invoked by uid 99); 9 Dec 2004 11:07:57 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from s-utl01-dapop.stsn.com (HELO s-utl01-dapop.stsn.com) (63.241.218.135) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 09 Dec 2004 03:07:57 -0800 Received: from dapop.smtp.stsn.com ([127.0.0.1]) by s-utl01-dapop.stsn.com (SAVSMTP 3.1.0.29) with SMTP id M2004120905074027151 for ; Thu, 09 Dec 2004 05:07:40 -0600 Received: from [10.25.95.239] ([10.25.95.239]) by dapop.smtp.stsn.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 9 Dec 2004 05:07:40 -0600 Received: from 127.0.0.1 (AVG SMTP 7.0.289 [265.4.6]); Thu, 09 Dec 2004 05:07:37 -0600 Message-ID: <41B831F9.9000108@icsynergy.com> Date: Thu, 09 Dec 2004 05:07:37 -0600 From: Santosh Haranath Reply-To: santosh.haranath@icsynergy.com Organization: ICSynergy User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en To: HttpClient User Discussion Subject: Re: retry handler for java.net.SocketException: Connection reset exception References: <41AD1CF6.8080508@icsynergy.com> <20041201090147.GA10411@xbox.localdomain> <41AEA901.1070402@icsynergy.com> <1101992432.3375.10.camel@localhost.localdomain> <41B78588.1040404@icsynergy.com> <20041209105658.GA18272@xbox.localdomain> In-Reply-To: <20041209105658.GA18272@xbox.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-OriginalArrivalTime: 09 Dec 2004 11:07:40.0573 (UTC) FILETIME=[4C9894D0:01C4DDDF] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Oleg , Retry method works with IOExceptions but in my case its SocketException . I don't know how to handle Connection reset exception. |*retryMethod <../../../../org/apache/commons/httpclient/HttpMethodRetryHandler.html#retryMethod%28org.apache.commons.httpclient.HttpMethod,%20java.io.IOException,%20int%29>*(HttpMethod <../../../../org/apache/commons/httpclient/HttpMethod.html> method, IOException exception, int executionCount)| Thanks! Oleg Kalnichevski wrote: >Santosh, > >Have you looked at the HttpClient tutorial? > >http://jakarta.apache.org/commons/httpclient/tutorial.html > >If you are using HttpClient 3.0 you may also want to look at the >HttpClient exception handling guide for more specific info: > >http://jakarta.apache.org/commons/httpclient/3.0/exception-handling.html > >Hope this helps > >Oleg > >On Wed, Dec 08, 2004 at 04:51:52PM -0600, Santosh Haranath wrote: > > >>Hi, >> >>How do I write retry handler for java.net.SocketException: Connection >>reset exception ? >> >>Thanks! >> >> >>-- >>No virus found in this outgoing message. >>Checked by AVG Anti-Virus. >>Version: 7.0.289 / Virus Database: 265.4.6 - Release Date: 12/5/2004 >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org >>For additional commands, e-mail: httpclient-user-help@jakarta.apache.org >> >> >> > >--------------------------------------------------------------------- >To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: httpclient-user-help@jakarta.apache.org > > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.6 - Release Date: 12/5/2004 --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org