]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39010: Fix errors logged on proactor loop restart (#22017)
authorBen Darnell <ben@bendarnell.com>
Mon, 31 Aug 2020 19:57:52 +0000 (15:57 -0400)
committerGitHub <noreply@github.com>
Mon, 31 Aug 2020 19:57:52 +0000 (12:57 -0700)
commitea5a6363c3f8cc90b7c0cc573922b10f296073b6
tree9464334a7c5d9f0b5dc76a227b915a9850d05c90
parentc3a651ad2544d7d1be389b63e9a4a58a92a31623
bpo-39010: Fix errors logged on proactor loop restart (#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.
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]