-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
bpo-23846: Fix ProactorEventLoop._write_to_self() #11566
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
Conversation
asyncio.ProactorEventLoop now catchs and logs send errors when the self-pipe is full: BaseProactorEventLoop._write_to_self() now catchs and logs OSError exceptions, as done by BaseSelectorEventLoop._write_to_self().
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.
LGTM, but maybe warn_on_full_buffer=False
for set_wakeup_fd()
is even better option?
https://docs.python.org/3/library/signal.html#signal.set_wakeup_fd
set_wakeupfd() is unrelated to https://bugs.python.org/issue23846 or did I miss something? Moreover, unix_events.py is my reference (best implementation), and it doesn't use warn_on_full_buffer=False. |
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7. |
GH-11567 is a backport of this pull request to the 3.7 branch. |
asyncio.ProactorEventLoop now catchs and logs send errors when the self-pipe is full: BaseProactorEventLoop._write_to_self() now catchs and logs OSError exceptions, as done by BaseSelectorEventLoop._write_to_self(). (cherry picked from commit c9f872b) Co-authored-by: Victor Stinner <[email protected]>
asyncio.ProactorEventLoop now catchs and logs send errors when the self-pipe is full: BaseProactorEventLoop._write_to_self() now catchs and logs OSError exceptions, as done by BaseSelectorEventLoop._write_to_self(). (cherry picked from commit c9f872b) Co-authored-by: Victor Stinner <[email protected]>
You are right, |
|
asyncio.ProactorEventLoop now catchs and logs send errors when the
self-pipe is full: BaseProactorEventLoop._write_to_self() now catchs
and logs OSError exceptions, as done by
BaseSelectorEventLoop._write_to_self().
https://bugs.python.org/issue23846