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 Re: Timeout and retries
Date Sat, 13 Jan 2007 19:48:01 GMT
Roland Weber wrote:
>> setConnectionTimeout (for connect - obviously)
>> setSoTimeout (is this for receive? or connect as well? how does it
>> relate to the above method?)
>>     
>
> That's basic socket stuff. Connection timeout for opening the
> connection, SO timeout for reading from the connection:
> http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html#connect(java.net.SocketAddress,%20int)
> http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html#setSoTimeout(int)
>   
>> and then setConnectionmanagerTimeout - what's this for? if the pool is
>> full of connections alread? wait time for getting a connection from the
>> pool?
>>     
>
> The latter. Calls will block if the pool is empty, not if it's full :-)
>   
What happens if max connections is reached and a new one is attempted - 
will it block - or be interrupted by throwing an exception?
>> Also, I've noticed that setting
>> this.connectionManager.getParams().setConnectionTimeout(
>> connectionTimeout );
>>
>> will result in the requests NOT getting retried.
>>     
> Could you please open a JIRA issue for this?
> http://jakarta.apache.org/commons/httpclient/issue-tracking.html
>   
done, https://issues.apache.org/jira/browse/HTTPCLIENT-621

-- 
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