Skip to content

Commit d951fe6

Browse files
committed
gh-157418: Correct the IocpProactor recvfrom_into parameter name
1 parent c947a46 commit d951fe6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/asyncio/windows_events.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,11 +515,11 @@ def recvfrom(self, conn, nbytes, flags=0):
515515
return self._register(ov, conn, partial(self._finish_recvfrom,
516516
empty_result=b''))
517517

518-
def recvfrom_into(self, conn, buf, flags=0):
518+
def recvfrom_into(self, conn, buf, nbytes=0):
519519
self._register_with_iocp(conn)
520520
ov = _overlapped.Overlapped(NULL)
521521
try:
522-
ov.WSARecvFromInto(conn.fileno(), buf, flags)
522+
ov.WSARecvFromInto(conn.fileno(), buf, nbytes)
523523
except BrokenPipeError:
524524
return self._result((0, None))
525525

0 commit comments

Comments
 (0)