]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35682: Fix _ProactorBasePipeTransport._force_close() (GH-11462)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 8 Jan 2019 02:15:25 +0000 (18:15 -0800)
committerGitHub <noreply@github.com>
Tue, 8 Jan 2019 02:15:25 +0000 (18:15 -0800)
commit88bd26a72eb4ab341cf19bea78a0039fbe4be3a2
tree1903dd93054cc4f089b069b8aa52be9e3263955f
parent9a413faa8708e5c2df509e97d48f18685c198b24
bpo-35682: Fix _ProactorBasePipeTransport._force_close() (GH-11462)

bpo-32622, bpo-35682: Fix asyncio.ProactorEventLoop.sendfile(): don't
attempt to set the result of an internal future if it's already done.

Fix asyncio _ProactorBasePipeTransport._force_close(): don't set the
result of _empty_waiter if it's already done.
(cherry picked from commit 80fda712c83f5dd9560d42bf2aa65a72b18b7759)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Lib/asyncio/proactor_events.py
Misc/NEWS.d/next/Library/2019-01-08-01-54-02.bpo-35682.KDM9lk.rst [new file with mode: 0644]