hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <http-as...@dubioso.net>
Subject Re: Running out of file handles
Date Sat, 17 Feb 2007 16:34:01 GMT
Lowell Kirsh wrote:
> So I'm trying to use just a single HttpClient for my entire
> application. When I had one HttpClient per request, I would set the
> per-Method timeouts on the HttpClient itself, but now that I'm using
> only a single HttpClient, I'm not sure how to go about setting the
> timeouts. I'd like to set the connection timeout and the 'so' timeouts
> for each HttpMethod that I execute. I can see how to set the 'so'
> timeout by calling method.getParams().setSoTimeout(), but can I set
> the connection timeout in a similar way?

Yes, set the parameter named
in the method params. There is no convenience method like for SO timeout,
but it should work anyway.


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

View raw message