blob: 0b0d471a424ebadf65323d68392bfc3425e243d6 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001From d7fb0a6ef3f3cbdfc1f21f5a67d54fa9d2c1e183 Mon Sep 17 00:00:00 2001
2From: Koen Kooi <koen@dominion.thruhere.net>
3Date: Wed, 2 Nov 2011 11:07:24 +0100
4Subject: [PATCH] disable AI_ADDRCONFIG flag
5
6Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
7
8Upstream-Status: unknown
9---
10 tornado/netutil.py | 6 ------
11 1 files changed, 0 insertions(+), 6 deletions(-)
12
13diff --git a/tornado/netutil.py b/tornado/netutil.py
14index cfff0ba..c181f24 100644
15--- a/tornado/netutil.py
16+++ b/tornado/netutil.py
17@@ -238,12 +238,6 @@ def bind_sockets(port, address=None, family=socket.AF_UNSPEC, backlog=128):
18 if address == "":
19 address = None
20 flags = socket.AI_PASSIVE
21- if hasattr(socket, "AI_ADDRCONFIG"):
22- # AI_ADDRCONFIG ensures that we only try to bind on ipv6
23- # if the system is configured for it, but the flag doesn't
24- # exist on some platforms (specifically WinXP, although
25- # newer versions of windows have it)
26- flags |= socket.AI_ADDRCONFIG
27 for res in set(socket.getaddrinfo(address, port, family, socket.SOCK_STREAM,
28 0, flags):
29 af, socktype, proto, canonname, sockaddr = res
30--
311.7.2.5
32