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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to