On Thu, 2005-07-21 at 15:17 +0100, sebb wrote: > 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.
That's a good point. Instead, each element can override the threadFinished() method of TestElement to do this sort of cleanup. -Mike --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

