From 483372f43ad9bba29fa9eac8bad2631c2c61b8f7 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 20 May 2012 12:43:28 +0200 Subject: [PATCH] AI flag error --- libs/tornado/netutil.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libs/tornado/netutil.py b/libs/tornado/netutil.py index 1e1bcbf9..dcffd4a3 100644 --- a/libs/tornado/netutil.py +++ b/libs/tornado/netutil.py @@ -238,12 +238,6 @@ def bind_sockets(port, address=None, family=socket.AF_UNSPEC, backlog=128): if address == "": address = None flags = socket.AI_PASSIVE - if hasattr(socket, "AI_ADDRCONFIG"): - # AI_ADDRCONFIG ensures that we only try to bind on ipv6 - # if the system is configured for it, but the flag doesn't - # exist on some platforms (specifically WinXP, although - # newer versions of windows have it) - flags |= socket.AI_ADDRCONFIG for res in set(socket.getaddrinfo(address, port, family, socket.SOCK_STREAM, 0, flags)): af, socktype, proto, canonname, sockaddr = res