olegk wrote:
>
> 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]
>
>
>
Hmm I set connPerRoute.setDefaultMaxPerRoute(50); still doesnt work :|.
It seems to hang when I have 2 POST called exactly at the same time, async
ajax.
--
View this message in context:
http://old.nabble.com/Multiple-post-with-Httpclient-4.0.3-hanging-randomly-tp30674219p30700515.html
Sent from the HttpClient-User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]