diff options
author | max <max@noemail.net> | 2011-08-04 14:03:59 (GMT) |
---|---|---|
committer | max <max@noemail.net> | 2011-08-04 14:03:59 (GMT) |
commit | afb51818ad6a9e10a9d71ef8037b445513ef7159 (patch) | |
tree | a86216133aa88b71bb1a3bd0b1a3d15e819b189e /generic/tclIOSock.c | |
parent | de32d87523a41ddce8083b538b597f38126d4bbc (diff) | |
download | tcl-afb51818ad6a9e10a9d71ef8037b445513ef7159.zip tcl-afb51818ad6a9e10a9d71ef8037b445513ef7159.tar.gz tcl-afb51818ad6a9e10a9d71ef8037b445513ef7159.tar.bz2 |
Don't use AI_ADDRCONFIG for now. It seems to do more harm than good.
FossilOrigin-Name: 585e304a31f48559df5f6dc5de7870c441b0fdf9
Diffstat (limited to 'generic/tclIOSock.c')
-rw-r--r-- | generic/tclIOSock.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/generic/tclIOSock.c b/generic/tclIOSock.c index aabd67d..768428f 100644 --- a/generic/tclIOSock.c +++ b/generic/tclIOSock.c @@ -178,6 +178,14 @@ TclCreateSocketAddress( } hints.ai_socktype = SOCK_STREAM; +#if 0 + /* + * We found some problems when using AI_ADDRCONFIG, e.g. on systems that + * have no networking besides the loopback interface and want to resolve + * localhost. See bugs 3385024, 3382419, 3382431. As the advantage of + * using AI_ADDRCONFIG in situations where it works, is probably low, + * we'll leave it out for now. After all, it is just an optimisation. + */ #if defined(AI_ADDRCONFIG) && !defined(_AIX) && !defined(__hpux) /* * Missing on: OpenBSD, NetBSD. @@ -185,6 +193,7 @@ TclCreateSocketAddress( */ hints.ai_flags |= AI_ADDRCONFIG; #endif +#endif if (willBind) { hints.ai_flags |= AI_PASSIVE; } |