hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Setting Connection Timeout
Date Sun, 03 Aug 2008 19:18:32 GMT
Subhash Chandran wrote:
> Hi,
>
> I have been using Commons HTTP Client 3.x for sometime, where I set
> the connection timeout value thus:
>
> client.getHttpConnectionManager().getParams().setConnectionTimeout(123456);
>
> How do I perform this in 4.x?
>
>   
Set 'http.connection.timeout' parameter to a positive integer value. You 
can use one of the static helper methods from this class to do so:

http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/params/HttpConnectionParams.java

Oleg

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


Mime
View raw message