Connection remains after test ends
Websocket connection does not get closed when the test ends if there is no explicit close performed.
The connection gets closed when starting a new test run or closing jmeter.
Comments (6)
-
repo owner -
reporter Must have missed that, apologies.
But wouldn't it make more sense to invert the behavior making closing the default as one would expect there not to be any dangling ends once the test is over?
-
repo owner No problem.
I understand what you're saying, but i think "what's makes sense" is debatable. But to be honest, the reason that the default is to leave it open is just historic and at the time i didn't want to make changes that would break existing test plans....
Regards, Peter
-
reporter It's not a problem for me because I employ heartbeat. Just randomly noticed the behavior and didn't even consider the possibility that was intentional behavior.
-
reporter - changed status to resolved
Documented intentional behavior.
-
repo owner ;-)
- Log in to comment
Correct.
You can change this behaviour by setting JMeter property websocket.thread.stop.policy, see documentation (the readme).