Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-46805: Add low level UDP socket functions to asyncio #31455

Merged
merged 14 commits into from
Mar 13, 2022
Prev Previous commit
Next Next commit
Fixed wrong return value on BrokenPipeError
agronholm committed Mar 11, 2022
commit 7b3c12bced677cb1d3c333746425f5be7b260188
2 changes: 1 addition & 1 deletion Lib/asyncio/windows_events.py
Original file line number Diff line number Diff line change
@@ -518,7 +518,7 @@ def recvfrom_into(self, conn, buf, flags=0):
try:
ov.WSARecvFromInto(conn.fileno(), buf, flags)
except BrokenPipeError:
return self._result((b'', None))
return self._result((0, None))

def finish_recv(trans, key, ov):
try: