commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: [httpclient] How to set connection TO in 2.0.2 ?
Date Fri, 25 Nov 2005 09:49:14 GMT
On Fri, Nov 25, 2005 at 10:00:31AM +0100, Nicolas De Loof wrote:
> 
> Hello,
> 
> I've a problem on a production application that uses commons-httpclient 
> : The target server I try to connect to is KO. I have to make the 
> connection TimeOut configurable, but I don't know how to do it on 
> httpclient 2.0 (HttpParams beeing a 3.0 feature)
> 
> Ho do do this ? What is the default TO value ?
> 

Socket timeout:
http://jakarta.apache.org/commons/httpclient/2.0/apidocs/org/apache/commons/httpclient/HttpClient.html#setTimeout(int)

Connect timeout:
http://jakarta.apache.org/commons/httpclient/2.0/apidocs/org/apache/commons/httpclient/HttpClient.html#setConnectionTimeout(int)

Both values are set to zero (disabled) per default

Oleg

> Nico.
> 
> This message contains information that may be privileged or confidential 
> and is the property of the Capgemini Group. It is intended only for the 
> person to whom it is addressed. If you are not the intended recipient,  you 
> are not authorized to read, print, retain, copy, disseminate,  distribute, 
> or use this message or any part thereof. If you receive this  message in 
> error, please notify the sender immediately and delete all  copies of this 
> message.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 

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


Mime
View raw message