On Fri, 2011-01-14 at 10:24 -0800, sherkal wrote:
> Hello friends, let me explain the situation.
> 
> I have a servlet redirecting outgoing GET/POST to another project on another
> domain (some kind of proxy) whose job is to handle it and return some stuff
> (params and a gif). Im using HttpClient 4.0.3 to do this.
> 
> There are multiple GET/POST sent by my app on startup, so I setup once a
> ThreadSafeClientConnManager to handle multiple threads this way.
> 
>     cm_params = new BasicHttpParams();
>     ConnManagerParams.setMaxTotalConnections(cm_params, 200);
> 
>     ConnPerRouteBean connPerRoute = new ConnPerRouteBean();
>     HttpHost localhost = new HttpHost("locahost");
>     connPerRoute.setMaxForRoute(new HttpRoute(localhost), 50);
> 

Please note that for all routes but localhost the default max limit of
two concurrent connections is still in effect. Try increasing the
default max limit for all routes and see if that makes any difference.

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to