grafana / xk6-websockets

GNU Affero General Public License v3.0
17 stars 6 forks source link

Potential lock up #36

Closed mstoykov closed 1 year ago

mstoykov commented 1 year ago

We have received info that sometimes using this module leads to k6 not stopping the process after the test duration is over.

Unfortunately there isn't all that much concrete info. The only particular interesting thing is that there are a lot of websocket connectiongs per VU 500+.

I was thinking it might be related to https://github.com/grafana/xk6-websockets/blob/acae12fa91dba04226446ef02df901b0215d9de2/websockets/websockets.go#L362-L368 but looking at the code - there is no way this code will miss to stop the execution. The problem with it, it might stop it too soon.

But it might also be some other corner case, and unfortunately it might even be in some other part that just gets trickered (more easily) by this module.

But the first step will be to make this at all reproducible I guess.