diff options
author | Guido van Rossum <guido@dropbox.com> | 2013-10-20 00:04:25 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@dropbox.com> | 2013-10-20 00:04:25 (GMT) |
commit | 32e46850a1d113f4f2c3d3894396370d6c5cb112 (patch) | |
tree | 0b9c72542077813ad8e5488f931896084f3e7798 /Lib/asyncio | |
parent | d20afad7d4f2d712da5f37a5108979d2a0c5d8ca (diff) | |
download | cpython-32e46850a1d113f4f2c3d3894396370d6c5cb112.zip cpython-32e46850a1d113f4f2c3d3894396370d6c5cb112.tar.gz cpython-32e46850a1d113f4f2c3d3894396370d6c5cb112.tar.bz2 |
(Hopefully) proper fix for gentoo buildbot failure due to lacking AF_INET6 support.
This should supersede revision e3ec6b17260c (but please test before removing that).
Diffstat (limited to 'Lib/asyncio')
-rw-r--r-- | Lib/asyncio/base_events.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index 2e00713..37d50aa 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -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, |