Reconnect option

Issue #209 open
Former user created an issue

Hi Peter,

I am currently testing a websocket server, that under heavy load sometimes closes the connection.

Sampler error: unexpected frame type (close)./Received: Close frame with status code 1000 and close reason '410 Gon'

This generates an error in the load test. The actual clients that use this websocket server, perform a reconnect when this happens. It would be nice if the plugin could do something like that also. I have not been able to find this possibility, neither did I find a way to handle the error in jmeter.

Comments (4)

  1. Paul Heijmann

    Hi Peter, I just created this issue but found I wasn’t logged in to Bitbucket yet. Now you have a name with the issue as well 🙂

  2. Peter Doornbosch repo owner

    Hi Paul,

    Thanks for your feedback.

    I don’t think we should make the plugin do the reconnect, but enable the tester to use other JMeter components (like the If-controller) to detect and resolve such situations; that will result in a more generic solution, as others might have different requirements as what to do on close.

    Having said that, what would you need for the plugin to provide? E.g. would you need an additional variable being set by the plugin so you can use it in a condition? Or is there an existing JMeter variable that the plugin should populate in a similar way as other plugins do?

    Regards
    Peter

  3. Paul Heijmann

    Hi Peter, I am not aware of the plugin setting any variables at the moment after such a ‘close’. But if the plugin would provide such as thing along with the close reason, and I could trigger a Websocket Open Connection.. Well that would be nice!

  4. Log in to comment