hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hubert, Eric" <Eric.Hub...@foxmobile.com>
Subject RE: same HttpClient object for multiple threads it is not working and causing the exception
Date Fri, 11 Jun 2010 07:23:58 GMT
I forgot to mention another useful source, the HttpClient tutorial, specifically to your questions
you may want to jump directly here:

http://hc.apache.org/httpcomponents-client-4.0.1/tutorial/html/connmgmt.html#d4e596



> Hi Rajkumari,
> 
> so far I have not tried HttpClient 4.x on my own, but using a
> SingleClientConnManager doesn't sound to be a reasonable choice to support
> multiple threads. So what about using ThreadSaveClientConnManager instead?
> I suggest having a look at the pretty good JavaDoc!
> Additional hint:While you are at you should also have a glance at
> setMaxForFoute() and setMaxTotalConnections() and adjust the probably RFC-
> compliant defaults according to your usage scenario.
> 
> Hope this helps.
> 
> Regards,
>    Eric
Mime
View raw message