hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Lamy <ol...@apache.org>
Subject Re: Retry on ConnectTimeoutException
Date Wed, 06 Jan 2010 20:27:41 GMT
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_question@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 <olamy@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-unsubscribe@hc.apache.org
> For additional commands, e-mail: mailto:httpclient-users-help@hc.apache.org
>
>
>



-- 
Olivier

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


Mime
View raw message