]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39651: Fix asyncio proactor _write_to_self() (GH-22197)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 12 Sep 2020 07:11:38 +0000 (00:11 -0700)
committerGitHub <noreply@github.com>
Sat, 12 Sep 2020 07:11:38 +0000 (00:11 -0700)
commit7dfcc8e0795cce6a8cb42ae2a7f159a38da6b38a
tree1e9f985a544cb45240d8325d8d975bcb397172d0
parent34e3c7592be70f652c293eb179593bf2928adeb4
bpo-39651: Fix asyncio proactor _write_to_self() (GH-22197)

Fix a race condition in the call_soon_threadsafe() method of
asyncio.ProactorEventLoop: do nothing if the self-pipe socket has
been closed.
(cherry picked from commit 1b0f0e3d7d03155da1cf9769a847874d559e57e3)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/asyncio/proactor_events.py
Lib/asyncio/selector_events.py
Misc/NEWS.d/next/Library/2020-09-11-12-38-55.bpo-39651.JMp9l2.rst [new file with mode: 0644]