Make it possible to use write sampler and read sampler in separate threads

Issue #126 closed
nosalan created an issue

Currently, after opening the connection, it is stored in a thread local variable. It makes it impossible to use e.g. Parallel Controller to parallelize sending websocket messages and receiving them.

The problem is ilustrated in this article too:
https://www.blazemeter.com/blog/how-to-use-the-parallel-controller-in-jmeter/

Such feature would help in a more advanced web socket scenarios.

Comments (4)

  1. Peter Doornbosch repo owner

    Hi,

    Use of parallel controller does not match the design of this plugin. Just as a simple example: if a message is received on a shared connection, to which parallel thread it should be delivered?

    I think most scenario’s can be implemented with combining the existing samplers and filters.

    Regards,
    Peter

  2. nosalan reporter

    In my original scenario, I wanted to keep constant websocket sending rate from client to server, like every 200ms.
    In order to avoid delays in sending I wanted to keep receiving elsewhere like in another thread.
    However, I managed to implement this with currently available samplers, by having writes/reads intertwined and introduced a dynamically calculated delay.
    So thins may be closed now.
    Thanks.

  3. Log in to comment