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: The host did not accept the connection within timeout of 60000 ms
Date Wed, 08 Nov 2006 17:04:48 GMT
On Wed, 2006-11-08 at 16:05 +0200, Eugeny N Dzhurinsky wrote:
> Hi there, I'm facing really weird problems with HTTPClient version 3.0.1
> My application uses 20 threads to download various URLs, for some reason
> sometimes most of URLs are not accepted for more than 3 times(!), because I'm
> getting this weird exception.
> 

Eugeny,

What kind of exception are you getting specifically? Could you please
post a complete exception stack trace?

Oleg

> Any ideas how to avoid this?
> 
> connectionManager = new MultiThreadedHttpConnectionManager();
> HttpConnectionManagerParams params = connectionManager.getParams();
> params.setMaxTotalConnections(1000);
> params.setDefaultMaxConnectionsPerHost(50);
> params.setStaleCheckingEnabled(true);
> params.setConnectionTimeout(60000);
> params.setSoTimeout(60000);
> params.setReceiveBufferSize(10 * 1024);
> 
> and then I'm creating GetMethod, set soem headers to it and perform request to
> server. All requests are GET requests.
> 


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


Mime
View raw message