-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Deadlock in multi-threaded server #109
Comments
The problem is avoided by calling the server's stop with false as the clean flag. |
Same goes for the client endpoint. If as a result of a message we stop the endpoint (not from the callback thread) the same deadlock mechanism happens. This was discovered during development and is not artificial at all. endpoint.stop(true) is dangerous. |
As has been discussed in other places, the 0.2.x branch is not particularly safe for use in multithreaded environments. The 0.3.x branch addresses these issues. |
Going to close this. If deadlocks are found in 0.3.x+, please report as a new issue. 0.2.x will not receive fixes related to multithreading. |
There is a deadlock in a multi-threaded server. The scenario is the following.
I have a unit-test which have a multi-threaded server and a client.
Result is the deadlock.
The scenario is quite artificial but who knows may be someone will have similar conditions in a production code and not in a unit-test.
The text was updated successfully, but these errors were encountered: