Re: Question about our use of HttpClient

sebb <[email protected]> Sun, 23 Oct 2011 12:32:51 +0100
Newsgroups gmane.comp.jakarta.cactus.devel
Message-ID <CAOGo0VYrYCJvh_Krbf-hTGy8p+Gt9-dDDtV3t8vNa54ZQh_GbQ@mail.gmail.com>
On 23 October 2011 12:19, Philippe Mouawad <[email protected]> wro=
te:
> Hello,
> I was wondering why we chose in the different implementations of Samplers
> using HttpClient 3 and 4 to use an instance per Thread in ThreadLocal zon=
e
> instead of using :
>
> =A0 - ThreadSafeClientConnManager for HC4
> =A0 - MultiThreadedHttpConnectionManager for HC3.1 (see
> =A0 http://pro-programmers.blogspot.com/2009/06/apache-httpclient-multi-t=
hreads.html
> =A0 )
>
> It is just a question not a change proposition (It works fine for me as i=
t
> is implemented now)

The intention is to ensure that JMeter threads behave like independent
users - no sharing of connections.

If JMeter were to share a connection manager between threads, then I
think that would no longer be the case.

However, we might perhaps need to use those connection managers to
sort out the parallel download issues.

Note that this is one of the problems with the Java HTTP
implementation - there is no control over connection re-use.

> --
> Regards
> Philippe
>