-
Notifications
You must be signed in to change notification settings - Fork 341
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
Configure threads to not abort on exceptions #484
Conversation
This solves long outstanding issue: #396. This happens, because some applications or gems do overwrite global setting of `Thread.abort_on_exception=` which is by default set to `false`. This leads to application process to exit and making the spring unable to recover from that.
Thanks for the pull request, and welcome! The Rails team is excited to review your changes, and you should hear from @jonleighton (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
This seems good, thanks. Some comments:
|
Updated. Can you review @jonleighton? |
I tried this fork in my app (see #466), but no luck. Actually, this version just doesn't work: it tries to reload app right after i run |
It seems strange, because your problem seems very similar to mine. Can you post maybe more logs? Also can you post what gems are you using? |
Here is the log: https://gist.github.com/tycooon/61a711940539643bb17b9151a4cffe7d |
@tycooon Are you sure that you are using my changes? |
Yes, I've put |
This is not a supported way of using spring. If you want to test this branch, you'll need to check it out and build and install the gem manually. |
OK, now I made these steps:
Now it doesn't die when I run |
@tycooon Strange. It works without any problems for me now :) Maybe you can post your gems? |
I've released 1.7.2 with this fix, so you can try that. Thanks! |
This solves long outstanding issue: #396.
This happens, because some applications or gems do overwrite global setting of
Thread.abort_on_exception=
which is by default set tofalse
.This leads to application process to exit and making the spring unable to recover from that.
Examples of such: