Hi sebb,

> JMeter can download embedded resources (images) etc referenced in a
> page, and these may well be from a different host:port.
> 
> If the next page is from the original host, would it not be better to
> keep the original connection for further requests?

That's what the connection manager is there for. A connection that is
returned to the connection manager is "free", but not necessarily closed.
The HostConfiguration passed to the CM when requesting a connection
indicates the host:port to which the connection will be targetted, and
the connection manager can then choose an open connection to that host.
The SimpleConnectionManager has nothing to choose from, of course.

HttpClient will detect whether the connection returned by the CM is an
open connection to the target host:port and re-use it if so. Otherwise,
the HttpConnection object will be pointed to the appropriate host:port
and a new (socket) connection is opened.

cheers,
  Roland

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to