]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-96827: Don't touch closed loops from executor threads (GH-96837)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 30 Sep 2022 20:23:33 +0000 (13:23 -0700)
committerGitHub <noreply@github.com>
Fri, 30 Sep 2022 20:23:33 +0000 (13:23 -0700)
commit95609525de4efd4125390ab8ae82af7bc908cc0d
tree9293cea8fb641291e4373cbc830c98b9ebcaf189
parent3124618fd5be9c00b1521c8a980f6aea02dc1a48
GH-96827: Don't touch closed loops from executor threads (GH-96837)

* When chaining futures, skip callback if loop closed.
* When shutting down an executor, don't wake a closed loop.
(cherry picked from commit e9d63760fea8748638f6e495b5b07bd1805c9591)

Co-authored-by: Guido van Rossum <guido@python.org>
Lib/asyncio/base_events.py
Lib/asyncio/futures.py
Misc/NEWS.d/next/Library/2022-09-30-15-56-20.gh-issue-96827.lzy1iw.rst [new file with mode: 0644]