You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Subhash Chandran <su...@gmail.com> on 2008/08/02 13:01:55 UTC

Setting Connection Timeout

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?

-- 
Regards,
Subhash Chandran S

http://rest-client.googlecode.com/

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


Re: Setting Connection Timeout

Posted by Oleg Kalnichevski <ol...@apache.org>.
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