hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Santosh Haranath <santosh.haran...@icsynergy.com>
Subject Re: retry handler for java.net.SocketException: Connection reset exception
Date Thu, 09 Dec 2004 16:42:49 GMT
My bad ..  I should have figured this out  myself.

Thanks Oleg for the help.
Have a nice day!!

-Santosh


Oleg Kalnichevski wrote:

>Santosh,
>
>SocketException is a subclass of IOException. So you can always do
>something like that
>
>if (exception instanceof SocketException) {
>  // Decide if the method is okay to be retried
>}
>
>Hope this helps
>
>Oleg
>
>On Thu, Dec 09, 2004 at 05:07:37AM -0600, Santosh Haranath wrote:
>  
>
>>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 
>><http://java.sun.com/j2se/1.4.1/docs/api/java/io/IOException.html> 
>>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
>>
>>    
>>
>
>---------------------------------------------------------------------
>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


Mime
View raw message