On 21/07/05, Michael Stover <[EMAIL PROTECTED]> wrote:
> JMeter has a global namespace and thread-specific namespaces.  Seems to
> me you would want to store your socket in the thread-specific namespace,
> and any TCP Sampler can retrieve it from there.  Each one should also be
> able to create a new one if it does not yet exist, and at test end, the
> sampler should make sure to clean it out (implement TestListener).

If I recall correctly, the TestListener testEnded() method is called
from a single, different thread - and only one instance is called. The
existing TCP sampler uses a private static Set to keep track of these.

In fact, when I now look at the TCPSampler code, it seems it already
implements per-thread sockets!

I'd forgotten that had already been done ... sorry about that.

Try turning on debug logging for the sampler and you should see when
the socket is re-used.

However, the protocol class may still need to be updated to handle the
end of the server response correctly.

S.

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

Reply via email to