mirror of
https://github.com/python/cpython.git
synced 2025-07-30 22:54:16 +00:00
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>
(cherry picked from commit 8fb94893e4
)
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
This commit is contained in:
parent
a7af34d407
commit
d327517b54
3 changed files with 22 additions and 1 deletions
|
@ -489,7 +489,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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue