[prev in list] [next in list] [prev in thread] [next in thread]
List: httpclient-users
Subject: Re: HttpClient 4.1 & Threading
From: Oleg Kalnichevski <olegk () apache ! org>
Date: 2012-05-17 17:42:23
Message-ID: 1337276543.5736.11.camel () ubuntu
[Download RAW message or body]
On Thu, 2012-05-17 at 13:02 +0000, Gordon Ross wrote:
> Using HttpClient 4.1, I'm creating an instance by:
>
> client = DefaultHttpClient(new ThreadSafeClientConnManager());
>
> Which gives me a thread-safe environment. But how separate are the thread \
> environments ?
> If I set headers, cookies, etc. are these shared between all threads ? Or does \
> ThreadSafeClientConnManager keep these all separate ?
> Thanks,
>
> GTG
Objects such as CookieStore set at the HttpClient level will be shared
by the threads that use that client to execute requests. Objects set in
a local HttpContext will be used within that context only.
Hope this helps
Oleg
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic