-
-
Notifications
You must be signed in to change notification settings - Fork 2k
multithreaded websocket++ server crashes #583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I seem to have run into a similar issue when spawning many async requests from js ws client: Thread 11 "provablyfair_ga" received signal SIGSEGV, Segmentation fault. |
updated to reflect the error on hdl in stack frame 1 |
The above happens if I create a std::thread backed pool and call send from threads other then the main thread, if I handle all message processing in my on_message handler it has no issues dealing with many async writes. |
I'm seeing this issue as well, is there a good workaround? |
Likewise encountering this issue. Is |
I also have similar issues. When I move connection_hdl to a thread pool and try to send there sometimes it crashes doesnt seem to have thread safety. |
I modified the websocket++ echo server example to use multiple threads:
I connect using one client which sends many messages asynchronously. Then the server crashes with:
Judging from the websocket++ manual on Thread Safety, what I am doing should be threadsafe:
The client I am using is based on NodeJS:
client.js
start via:
The text was updated successfully, but these errors were encountered: