summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-08-04 00:40:10 (GMT)
committerGitHub <noreply@github.com>2020-08-04 00:40:10 (GMT)
commit602a971a2af3a685d625c912c400cadd452718b1 (patch)
tree008054d98cbece7e215c1e95e17b58b35fecd0b8 /Misc
parentbde48fd8110cc5f128d5db44810d17811e328a24 (diff)
downloadcpython-602a971a2af3a685d625c912c400cadd452718b1.zip
cpython-602a971a2af3a685d625c912c400cadd452718b1.tar.gz
cpython-602a971a2af3a685d625c912c400cadd452718b1.tar.bz2
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'').
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2020-08-04-00-20-30.bpo-41467.Z8DgTL.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-08-04-00-20-30.bpo-41467.Z8DgTL.rst b/Misc/NEWS.d/next/Library/2020-08-04-00-20-30.bpo-41467.Z8DgTL.rst
new file mode 100644
index 0000000..f12693e
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-08-04-00-20-30.bpo-41467.Z8DgTL.rst
@@ -0,0 +1,3 @@
+On Windows, fix asyncio ``recv_into()`` return value when the socket/pipe is
+closed (:exc:`BrokenPipeError`): return ``0`` rather than an empty byte
+string (``b''``).