8000 bpo-46805: Add low level UDP socket functions to asyncio by agronholm · Pull Request #31455 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

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

8000 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

Merged
merged 14 commits into from
Mar 13, 2022
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fixed NameError
  • Loading branch information
agronholm committed Feb 27, 2022
commit af18ee1ae5c854b76f2d002f97a2f2ecca908ccc
6 changes: 3 additions & 3 deletions Lib/asyncio/selector_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ async def sock_recvfrom(self, sock, bufsize):
The maximum amount of data to be received at once is specified by
nbytes.
"""
_check_ssl_socket(sock)
base_events._check_ssl_socket(sock)
if self._debug and sock.gettimeout() != 0:
raise ValueError("the socket must be non-blocking")
try:
Expand Down Expand Up @@ -480,7 +480,7 @@ async def sock_recvfrom_into(self, sock, buf, nbytes=0):
The received data is written into *buf* (a writable buffer).
The return value is a tuple of (number of bytes written, address).
"""
_check_ssl_socket(sock)
base_events._check_ssl_socket(sock)
if self._debug and sock.gettimeout() != 0:
raise ValueError("the socket must be non-blocking")
try:
Expand Down Expand Up @@ -575,7 +575,7 @@ async def sock_sendto(self, sock, data, address):
raised, and there is no way to determine how much data, if any, was
successfully processed by the receiving end of the connection.
"""
_check_ssl_socket(sock)
base_events._check_ssl_socket(sock)
if self._debug and sock.gettimeout() != 0:
raise ValueError("the socket must be non-blocking")
try:
Expand Down
0