]> 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:09:54 +0000 (00:09 -0700)
committerGitHub <noreply@github.com>
Sat, 12 Sep 2020 07:09:54 +0000 (00:09 -0700)
commit530d1105ed7b0aa5ef76e3116918fe39bc6a4823
treef9c29b8380126b4eb772d6615b39fd05e9132267
parent77901dc6c3d06dd31f6c84b2d3cb21dc26b1e351
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]