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 <[email protected]>
To: [email protected]
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:[email protected]
For additional commands, e-mail: mailto:[email protected]


      

Reply via email to