On Mon, 2009-03-23 at 02:51 -0700, sveno wrote:
> 
> 
> 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)); 
> 

Yes, you can

Oleg



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

Reply via email to