-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Main thread shouldn't panic when child threads panic #447
Comments
This is due to some new bubbling behavior with join guards. |
Specifically, I see that |
I'm not sure if it's a hyper's issue, but maybe somebody will be kind enough to show code how to catch that Poisoning Error? Would be awesome to kill just one thread and let others work. Or terminate, at least, to let monitoring know server needs to be restarted. |
What do you mean? This issue should be fixed. Is another panic occurring? On Mon, Dec 7, 2015, 1:49 PM Evgeniy OZ [email protected] wrote:
|
I'm sure issue is fixed and I just don't understand something. My experience with Rust is very small - about month. |
@e-oz See the second example here, under "To recover from a poisoned mutex": http://doc.rust-lang.org/std/sync/struct.Mutex.html#examples |
When running the following code, the panic in the child thread causes the server to crash:
Here is the output:
This is a fairly serious reliability issue, as a server should never go down because of its child threads.
The text was updated successfully, but these errors were encountered: