hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Russell Brown <russel...@basho.com>
Subject Re: Connection retries
Date Thu, 04 Aug 2011 15:48:11 GMT
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: httpclient-users-unsubscribe@hc.apache.org
>> For additional commands, e-mail: httpclient-users-help@hc.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
> 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message