-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
don't throw EOFError from sleep #54801
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not the correct fix, but it seems like it should work around the bug in most cases
why isn't this a correct fix? |
It seems like a better fix would make
|
Yes, that is what is wrong about this fix. The |
Line 159 in 222231f
Why is there an error throw anyways? |
This should fix it #54955 |
This should be closed because #54955 is merge |
This prevents
sleep
from throwing anEOFError
under rare conditions (with very short timer durations) where theTimer
object is already closed before it can be signaled, which seems like a bug.See the discourse discussion.