]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41467: Fix asyncio recv_into() on Windows (GH-21720)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 4 Aug 2020 01:00:29 +0000 (18:00 -0700)
committerGitHub <noreply@github.com>
Tue, 4 Aug 2020 01:00:29 +0000 (18:00 -0700)
commit1d16229f3f5b91f2389c7c5c6425c5524c413651
treec498487c3ac4b778d353ba744c72f397bd714112
parentb6724be8047ac2404aab870d35d8f95bb0b7036a
bpo-41467: Fix asyncio recv_into() on Windows (GH-21720)

On Windows, fix asyncio recv_into() return value when the socket/pipe
is closed (BrokenPipeError): return 0 rather than an empty byte
string (b'').
(cherry picked from commit 602a971a2af3a685d625c912c400cadd452718b1)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/asyncio/windows_events.py
Misc/NEWS.d/next/Library/2020-08-04-00-20-30.bpo-41467.Z8DgTL.rst [new file with mode: 0644]