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

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]