Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
bpo-39010: Fix errors logged on proactor loop restart#22017
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
bdarnell commented Aug 30, 2020 • edited by bedevere-bot
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by bedevere-bot
Uh oh!
There was an error while loading. Please reload this page.
Stopping and restarting a proactor event loop on windows can lead to spurious errors logged (ConnectionResetError while reading from the self pipe). This fixes the issue by ensuring that we don't attempt to start multiple copies of the self-pipe reading loop.
bdarnell commented Aug 30, 2020
The failing CI test ( |
1st1 commented Aug 31, 2020
LGTM. Ben, should this be backported to 3.8/3.9? |
bdarnell commented Aug 31, 2020
Yes, this should be backported to 3.8/3.9. I haven't tested with those branches but the bug is definitely present in 3.8 (the bug is probably older but it was revealed when the proactor event loops became the default in 3.8) and I don't see any changes since then in the relevant parts of the code. |
miss-islington commented Aug 31, 2020
bedevere-bot commented Aug 31, 2020
@1st1: Please replace |
1st1 commented Aug 31, 2020
Thanks, Ben! |
Stopping and restarting a proactor event loop on windows can lead to spurious errors logged (ConnectionResetError while reading from the self pipe). This fixes the issue by ensuring that we don't attempt to start multiple copies of the self-pipe reading loop. (cherry picked from commit ea5a636) Co-authored-by: Ben Darnell <[email protected]>
bedevere-bot commented Aug 31, 2020
GH-22034 is a backport of this pull request to the 3.9 branch. |
Stopping and restarting a proactor event loop on windows can lead to spurious errors logged (ConnectionResetError while reading from the self pipe). This fixes the issue by ensuring that we don't attempt to start multiple copies of the self-pipe reading loop. (cherry picked from commit ea5a636) Co-authored-by: Ben Darnell <[email protected]>
bedevere-bot commented Aug 31, 2020
GH-22035 is a backport of this pull request to the 3.8 branch. |
Simply closing the event loop isn't enough to avoid warnings. If we don't also shut down the event loop's default executor, it sometimes logs a "dangling thread" warning. Follow-up to pythonGH-22017
) Stopping and restarting a proactor event loop on windows can lead to spurious errors logged (ConnectionResetError while reading from the self pipe). This fixes the issue by ensuring that we don't attempt to start multiple copies of the self-pipe reading loop. (cherry picked from commit ea5a636) Co-authored-by: Ben Darnell <[email protected]> Co-authored-by: Ben Darnell <[email protected]>
) Stopping and restarting a proactor event loop on windows can lead to spurious errors logged (ConnectionResetError while reading from the self pipe). This fixes the issue by ensuring that we don't attempt to start multiple copies of the self-pipe reading loop. (cherry picked from commit ea5a636) Co-authored-by: Ben Darnell <[email protected]> Co-authored-by: Ben Darnell <[email protected]>
Simply closing the event loop isn't enough to avoid warnings. If we don't also shut down the event loop's default executor, it sometimes logs a "dangling thread" warning. Follow-up to pythonGH-22017 (cherry picked from commit be435ae) Co-authored-by: Ben Darnell <[email protected]>
Simply closing the event loop isn't enough to avoid warnings. If we don't also shut down the event loop's default executor, it sometimes logs a "dangling thread" warning. Follow-up to pythonGH-22017 (cherry picked from commit be435ae) Co-authored-by: Ben Darnell <[email protected]>
bedevere-bot commented Sep 3, 2020
|
bedevere-bot commented Sep 3, 2020
|
bedevere-bot commented Sep 3, 2020
|
Simply closing the event loop isn't enough to avoid warnings. If we don't also shut down the event loop's default executor, it sometimes logs a "dangling thread" warning. Follow-up to GH-22017 (cherry picked from commit be435ae) Co-authored-by: Ben Darnell <[email protected]> Co-authored-by: Ben Darnell <[email protected]>
Simply closing the event loop isn't enough to avoid warnings. If we don't also shut down the event loop's default executor, it sometimes logs a "dangling thread" warning. Follow-up to GH-22017 (cherry picked from commit be435ae) Co-authored-by: Ben Darnell <[email protected]> Co-authored-by: Ben Darnell <[email protected]>
bedevere-bot commented Sep 3, 2020
|
bdarnell commented Sep 4, 2020
The buildbot failures here appear to be the issue fixed in follow-up PR GH-22066 |
jigripokhri commented Oct 14, 2020
thank you senpai! |
Stopping and restarting a proactor event loop on windows can lead to spurious errors logged (ConnectionResetError while reading from the self pipe). This fixes the issue by ensuring that we don't attempt to start multiple copies of the self-pipe reading loop.
Simply closing the event loop isn't enough to avoid warnings. If we don't also shut down the event loop's default executor, it sometimes logs a "dangling thread" warning. Follow-up to pythonGH-22017
Stopping and restarting a proactor event loop on windows can lead to
spurious errors logged (ConnectionResetError while reading from the
self pipe). This fixes the issue by ensuring that we don't attempt
to start multiple copies of the self-pipe reading loop.
https://bugs.python.org/issue39010