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 "Sharma, Siddharth" <Si...@Staples.com> on 2007/03/07 20:58:31 UTC
Set connect timeout
Is there a way to set a connect timeout per host configuration?
I am using a single HttpClient instance with
MultiThreadedHttpConnectionManager and am setting the connect timeout at the
manager level.
HttpConnectionManagerParams.setConnectionTimeout(int)
The side-effect of this is that all hosts get the same connect timeout
value.
Some target hosts are on the internet and some are within the intranet and I
need the ability to be able to set it per host.
Thanks in advance
Sid
Re: Set connect timeout
Posted by Roland Weber <RO...@de.ibm.com>.
Hello Sid,
set the timeout in the method parameters.
cheers,
Roland