mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
(Hopefully) proper fix for gentoo buildbot failure due to lacking AF_INET6 support.
This should supersede revision e3ec6b17260c (but please test before removing that).
This commit is contained in:
parent
d20afad7d4
commit
32e46850a1
1 changed files with 5 additions and 1 deletions
|
@ -464,7 +464,11 @@ class BaseEventLoop(events.AbstractEventLoop):
|
||||||
try:
|
try:
|
||||||
for res in infos:
|
for res in infos:
|
||||||
af, socktype, proto, canonname, sa = res
|
af, socktype, proto, canonname, sa = res
|
||||||
|
try:
|
||||||
sock = socket.socket(af, socktype, proto)
|
sock = socket.socket(af, socktype, proto)
|
||||||
|
except socket.error:
|
||||||
|
# Assume it's a bad family/type/protocol combination.
|
||||||
|
continue
|
||||||
sockets.append(sock)
|
sockets.append(sock)
|
||||||
if reuse_address:
|
if reuse_address:
|
||||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR,
|
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue