]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39010: Fix errors logged on proactor loop restart (GH-22017) (#22035)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 3 Sep 2020 19:38:34 +0000 (12:38 -0700)
committerGitHub <noreply@github.com>
Thu, 3 Sep 2020 19:38:34 +0000 (12:38 -0700)
commita986b061a3cd4661eb9f857e2936291f1847bd15
tree140f444860fd00133352196aca55a6a3c1fa0c9a
parent9fef7c54a0adfade5ec94259d97f22e05fe9e3e3
bpo-39010: Fix errors logged on proactor loop restart (GH-22017) (#22035)

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 ea5a6363c3f8cc90b7c0cc573922b10f296073b6)

Co-authored-by: Ben Darnell <ben@bendarnell.com>
Co-authored-by: Ben Darnell <ben@bendarnell.com>
Lib/asyncio/proactor_events.py
Lib/asyncio/windows_events.py
Lib/test/test_asyncio/test_proactor_events.py
Lib/test/test_asyncio/test_windows_events.py
Misc/NEWS.d/next/Library/2020-08-30-10-24-26.bpo-39010._mzXJW.rst [new file with mode: 0644]