olegk wrote:
> 
> ---
> DefaultHttpClient httpclient = new DefaultHttpClient();
> 
> httpclient.setHttpRequestRetryHandler(new HttpRequestRetryHandler() {
>    
>     public boolean retryRequest(
>             IOException exception, 
>             int executionCount, 
>             HttpContext context) {
>         return false;
>     }
>     
> });
> ---
> 
> Oleg
> 

Can we just have the following line to disable auto retries.
this.objHttp.setHttpRequestRetryHandler(new
DefaultHttpRequestRetryHandler(0, false)); 

-- 
View this message in context: 
http://www.nabble.com/HTTP-RETRY-HANDLER-tp21789760p22656999.html
Sent from the HttpClient-User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to