Skip to content
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

Fix @notify.close can't modify frozen IOError (RuntimeError) #1583

Merged
merged 2 commits into from
Feb 20, 2019
Merged

Fix @notify.close can't modify frozen IOError (RuntimeError) #1583

merged 2 commits into from
Feb 20, 2019

Conversation

chwevans
Copy link
Contributor

@chwevans chwevans commented May 23, 2018

Let me know if there is anything else you need for this contribution.

@@ -256,7 +256,8 @@ def handle_servers_lopez_mode
Thread.current.purge_interrupt_queue if Thread.current.respond_to? :purge_interrupt_queue
end

@notify.close
# Prevent can't modify frozen IOError (RuntimeError)
@notify.close rescue nil
Copy link

@phstc phstc Oct 8, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chwevans I don't know exactly about the fix, but I'm often getting RuntimeError: can't modify frozen IOError on Heroku after scaling down.

cc/ @evanphx @schneems

Copy link

@phstc phstc Feb 20, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@evanphx sure. I get that every day when Heroku auto restarts/recycles dynos.

image

@evanphx
Copy link
Member

evanphx commented Feb 20, 2019

Can you provide a backtrace for this? Never seen a frozen IO.

@evanphx evanphx added the waiting-for-changes Waiting on changes from the requestor label Feb 20, 2019
@evanphx evanphx removed the waiting-for-changes Waiting on changes from the requestor label Feb 20, 2019
@evanphx evanphx merged commit 50b23bb into puma:master Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants