mirror of
https://github.com/python/cpython.git
synced 2025-09-12 11:46:52 +00:00
bpo-31245: Asyncio unix socket datagram (#3164)
This commit is contained in:
parent
a2314283ff
commit
fe4ea9cf1e
5 changed files with 24 additions and 5 deletions
|
@ -859,6 +859,12 @@ class BaseEventLoop(events.AbstractEventLoop):
|
|||
if family == 0:
|
||||
raise ValueError('unexpected address family')
|
||||
addr_pairs_info = (((family, proto), (None, None)),)
|
||||
elif hasattr(socket, 'AF_UNIX') and family == socket.AF_UNIX:
|
||||
for addr in (local_addr, remote_addr):
|
||||
if addr is not None and not isistance(addr, str):
|
||||
raise TypeError('string is expected')
|
||||
addr_pairs_info = (((family, proto),
|
||||
(local_addr, remote_addr)), )
|
||||
else:
|
||||
# join address by (family, protocol)
|
||||
addr_infos = collections.OrderedDict()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue