summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
diff options
context:
space:
mode:
authorThomas Grainger <tagrain@gmail.com>2022-02-22 20:35:57 (GMT)
committerGitHub <noreply@github.com>2022-02-22 20:35:57 (GMT)
commit8fb94893e4a870ed3533e80c4bc2f1ebf1cfa9e7 (patch)
tree3bcc48b3d52d351da7aee48f4a3b0460596b8a59 /Lib/asyncio
parent38b5acf8673ce42a401263a2528202e44d6ae60a (diff)
downloadcpython-8fb94893e4a870ed3533e80c4bc2f1ebf1cfa9e7.zip
cpython-8fb94893e4a870ed3533e80c4bc2f1ebf1cfa9e7.tar.gz
cpython-8fb94893e4a870ed3533e80c4bc2f1ebf1cfa9e7.tar.bz2
bpo-46827: pass sock.type to getaddrinfo in sock_connect (GH-31499)
Co-authored-by: Thomas Grainger <tagrain@gmail.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Diffstat (limited to 'Lib/asyncio')
-rw-r--r--Lib/asyncio/selector_events.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/asyncio/selector_events.py b/Lib/asyncio/selector_events.py
index ebb5cbe..c3c2ec1 100644
--- a/Lib/asyncio/selector_events.py
+++ b/Lib/asyncio/selector_events.py
@@ -498,7 +498,9 @@ class BaseSelectorEventLoop(base_events.BaseEventLoop):
if not hasattr(socket, 'AF_UNIX') or sock.family != socket.AF_UNIX:
resolved = await self._ensure_resolved(
- address, family=sock.family, proto=sock.proto, loop=self)
+ address, family=sock.family, type=sock.type, proto=sock.proto,
+ loop=self,
+ )
_, _, _, _, address = resolved[0]
fut = self.create_future()