Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da492a8 commit 013deceCopy full SHA for 013dece
1 file changed
Lib/asyncio/base_events.py
@@ -45,10 +45,13 @@ def _check_resolved_address(sock, address):
45
# Ensure that the address is already resolved to avoid the trap of hanging
46
# the entire event loop when the address requires doing a DNS lookup.
47
family = sock.family
48
- if family not in (socket.AF_INET, socket.AF_INET6):
+ if family == socket.AF_INET:
49
+ host, port = address
50
+ elif family == socket.AF_INET6:
51
+ host, port, flow_info, scope_id = address
52
+ else:
53
return
54
- host, port = address
55
type_mask = 0
56
if hasattr(socket, 'SOCK_NONBLOCK'):
57
type_mask |= socket.SOCK_NONBLOCK
0 commit comments