(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:
Guido van Rossum 2013-10-19 17:04:25 -07:00
parent d20afad7d4
commit 32e46850a1
1 changed files with 5 additions and 1 deletions

View File

@ -464,7 +464,11 @@ class BaseEventLoop(events.AbstractEventLoop):
try:
for res in infos:
af, socktype, proto, canonname, sa = res
sock = socket.socket(af, socktype, proto)
try:
sock = socket.socket(af, socktype, proto)
except socket.error:
# Assume it's a bad family/type/protocol combination.
continue
sockets.append(sock)
if reuse_address:
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR,