denoland / fastwebsockets

A fast RFC6455 WebSocket implementation
https://docs.rs/fastwebsockets/
Apache License 2.0
845 stars 61 forks source link

Thread safety test #41

Closed corvusrabus closed 3 months ago

corvusrabus commented 1 year ago

This adds a thread safety test that is currently not satisfied. Will add more info in #42 .

The test concurrently starts N_CLIENTS and makes them send the numbers 1..N to a server that is running in the background. The server then checks whether these numbers were received. This currently fails because the library is not thread safe.

littledivy commented 3 months ago

Landed here in the fix PR: https://github.com/denoland/fastwebsockets/blob/main/tests/concurrency.rs