Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Lib/asyncio/windows_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,11 +515,11 @@ def recvfrom(self, conn, nbytes, flags=0):
return self._register(ov, conn, partial(self._finish_recvfrom,
empty_result=b''))

def recvfrom_into(self, conn, buf, flags=0):
def recvfrom_into(self, conn, buf, nbytes=0):
self._register_with_iocp(conn)
ov = _overlapped.Overlapped(NULL)
try:
ov.WSARecvFromInto(conn.fileno(), buf, flags)
ov.WSARecvFromInto(conn.fileno(), buf, nbytes)
except BrokenPipeError:
return self._result((0, None))

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Correct the third parameter name of ``IocpProactor.recvfrom_into()`` from
*flags* to *nbytes* to reflect that it specifies the number of bytes to
receive.
Loading