Closed akiomik closed 7 months ago
Hmm, nothing is immediately jumping out at me. Do you have a small sample of your code (both server and client would be preferred), or a smaller replication example I could look into?
Sorry for the delay. Here is the repository where the error is reproduced. https://github.com/akiomik/mist_playground
The code on the server side is simple. When a specific message is received, it is parsed as JSON and a response is generated based on the data it contains. https://github.com/akiomik/mist_playground/blob/main/src/mist_playground.gleam
The client side is a bit more complicated: we are testing in node.js using k6
, a load testing tool made by grafana. This is a test scenario that uses five parallel connections to access the server for 1 minute.
https://github.com/akiomik/mist_playground/blob/main/bench/benchmark.js
The above error occurs after about 30 seconds of starting the benchmark script in my environment.
Thank you for the helpful reproduction steps! I think this should be fixed in the latest release.
Let me know if it works for you 😄
Edit: This wasn't fixed, but I think it should be now lol. Sorry about that.
I am writing a simple server using websocket. There is no problem with normal data transfer after making a connection, but the following error may occur in some cases when more data is transferred.
Any ideas?