Thanks for reply.
Yes I already use this for this type of exception.
But this doesn't catch the ConnectionTimeOut.

--
Olivier

2010/1/6 Khosro Asgharifard <khosro_quest...@yahoo.com>:
> Hi all,
> Olivier , Maybe i could not answer your question but i have one question .
> Sometimes i got the "Read timeout"   or    "Connection reset"  or    "Stream 
> close"  exceptions .
> and "Read timeout" exception is the most one.
> How do you use HttpRequestRetryHandler to handle  "Read timeout" exception ?
> I use  this code ,but again  i got this "Read timeout" exception ,
>
>    GetMethod   httpGet = new GetMethod(url);
>    httpGet.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new 
> DefaultHttpMethodRetryHandler(10, true));
>
> Is there another way to handle this exception?
>
> Khosro.
>
>
>
>
> ________________________________
> From: Olivier Lamy <ol...@apache.org>
> To: httpclient-users@hc.apache.org
> Sent: Wed, January 6, 2010 10:08:21 AM
> Subject: Retry on ConnectTimeoutException
>
> Hi,
> I'm using http-client 4.0.1.
> Is there any way to use HttpRequestRetryHandler to handle retry on
> ConnectTimeoutException ? (I did it with http client 3 )
>
> Thanks,
> --
> Olivier
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: mailto:httpclient-users-unsubscr...@hc.apache.org
> For additional commands, e-mail: mailto:httpclient-users-h...@hc.apache.org
>
>
>



-- 
Olivier

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
For additional commands, e-mail: httpclient-users-h...@hc.apache.org

Reply via email to