]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41467: Fix asyncio recv_into() on Windows (GH-21720)
authorVictor Stinner <vstinner@python.org>
Tue, 4 Aug 2020 00:40:10 +0000 (02:40 +0200)
committerGitHub <noreply@github.com>
Tue, 4 Aug 2020 00:40:10 +0000 (02:40 +0200)
commit602a971a2af3a685d625c912c400cadd452718b1
tree008054d98cbece7e215c1e95e17b58b35fecd0b8
parentbde48fd8110cc5f128d5db44810d17811e328a24
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'').
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]