bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] Revisiting AI_ADDRCONFIG


From: Hrvoje Niksic
Subject: Re: [Bug-wget] Revisiting AI_ADDRCONFIG
Date: Wed, 29 Sep 2010 08:41:50 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

"Ángel González" <address@hidden> writes:

>>> However, there's another easier thing to do for wget. Ulrich Drepper
>>> strongly argues there that getaddrinfo() callers should use the
>>> AI_ADDRCONFIG flag. wget is purposefully not using that flag [2] and
>>> so even if disabling ipv6 [3] it still performs the two queries (and
>>> produces the waiting behavior) whereas adding AI_ADDRCONFIG avoid it.
>> Note that you can disable IPv6 in Wget itself with --inet4-only or the
>> equivalent .wgetrc command.  That will cause Wget to request AF_INET
>> family from getaddrinfo and (presumably) avoid the spurious lookup that
>> causes problems.
> I could also build a patched wget with that flag set.

This part of my response was about how to avoid the waiting behavior in
this particular case, even without rebuilding Wget.  My understanding of
the cited text is that it claims this to be impossible without using
AI_ADDRCONFIG, i.e. patching and rebuilding Wget.

The relevant question for adding AI_ADDRCONFIG would be: other than
working around this resolver bug, what else is gained by using
AI_ADDRCONFIG in the current Wget?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]