-
Notifications
You must be signed in to change notification settings - Fork 37
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
abnormal termination fails silently + burns cpu #81
Conversation
fix: use @pipe.read_nonblock(1) instead of @pipe.read(1) fix: rescue EOFError (raised by #read_nonblock) and wait 1 seconds before iterating over
Hi @saluzafa, thanks for your pull request, this is much appreciated. Could you please add some more details are both fixes explaining why they needed and which issue they are particularly addressing. If not too complicated, adding specs would be also great. |
+1 for merging this change. It prevents 100+ CPU utilization by |
@sbleon that's great to hear, I'm also looking merging that PR! |
…82 (EOFError is a child class of IOError)
…82 (EOFError is a child class of IOError)
Hello there! I'm going to remove the useless part Have a good week-end :) |
@saluzafa great, thanks for the explanation! |
Welcome :), I just noticed that I forgot to bump the version number, are you going to do it by yourself later or do you want me to do it now? Cheers! |
I just did it, version 0.10.3 is out! |
Thanks so much, y'all!
…On Sat, Mar 3, 2018 at 2:29 PM, Thibaud Guillaume-Gentil < ***@***.***> wrote:
I just did it, version 0.10.3 is out!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#81 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMIN5OJ6I8EuCLOj4FLrUlJApUcTE7Oks5tau8fgaJpZM4SWuyH>
.
|
I've held on commenting until I've made installed 10.3 and observed for a few weeks. When I use spring (which this gem uses) in a Rails 5.1 project, I still get 100% cpu usage some of the time. Not sure how I can falsify other than occassionally seeing 100% cpu in ruby. Do I need to update to the latest macOS? I'm currently in macos 10.12.6 Thanks so much for possibly resolving this long-time issue! |
fix: use @pipe.read_nonblock(1) instead of @pipe.read(1)
fix: rescue EOFError (raised by #read_nonblock) and wait 1 seconds before iterating over