hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David J. M. Karlsen" <da...@davidkarlsen.com>
Subject Timeout and retries
Date Wed, 10 Jan 2007 14:23:42 GMT
Hi!

I'm a little confused over the different timeout settings.
I'm using httpclient with the MultiThreadedHttpconnectionManager.

there are three different timeout settings:

setConnectionTimeout (for connect - obviously)
setSoTimeout (is this for receive? or connect as well? how does it 
relate to the above method?)

and then setConnectionmanagerTimeout - what's this for? if the pool is 
full of connections alread? wait time for getting a connection from the 
pool?

Also, I've noticed that setting 
this.connectionManager.getParams().setConnectionTimeout( 
connectionTimeout );

will result in the requests NOT getting retried.
i've configured retries like this:

         this.httpClient.getParams().setParameter( 
HttpMethodParams.RETRY_HANDLER,
                                                   new 
DefaultHttpMethodRetryHandler( numRetries,
 
               false ) );  //false or true - still won't retry if 
setConnectionTimeout is set

numRetries is > 1.

David


-- 
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message