If you want to have more control over retires you can implement 
HttpRequestRetryHandler

See 1.3.4 here 
http://hc.apache.org/httpcomponents-client-ga/tutorial/html/fundamentals.html

On 4 Aug 2011, at 16:22, KARR, DAVID (ATTSI) wrote:

>> -----Original Message-----
>> From: KARR, DAVID (ATTSI)
>> Sent: Thursday, August 04, 2011 8:20 AM
>> To: HttpClient User Discussion
>> Subject: Connection retries
>> 
>> I'd like to understand some things about how and why HttpClient
>> "retries" connections that it can't make.  I've tried setting the
>> "connection timeout" to 20 seconds, but what I see happen is that it
>> actually tries to connect 6 times, each time timing out after 20
>> seconds, where it says it's going to try another IP address (although
>> there's only one possibility for my test).  I can understand where this
>> is useful when a DNS name maps to multiple IP addresses.
> 
> Actually, I see that in my particular test, it was actually using different 
> IP addresses, so this is understandable.
> 
>> Is there any way to control the number of times it retries?  I couldn't
>> find any obvious way to do this.
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

Reply via email to