This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author neologix
Recipients loewis, neologix
Date 2013-08-22.07:11:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAH_1eM3hPUp7a5yUC=g-apuPs7gzBOqPz41OU8eB7YK=hNyfKA@mail.gmail.com>
In-reply-to <1377150255.36.0.551541174341.issue18806@psf.upfronthosting.co.za>
Content
Hum...
Apparently, before this bug was fixed, glibc's getaddrinfo() would
retrieve the list of interfaces at every call, even if AI_ADDRCONFIG
was not set:
http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=fa3fc0fe5f452d0aa7e435d8f32e992958683819

Which can mean a large overhead.
Also, from a quick look at the source, it will also retrieve the list
of interfaces if more than one address matches (e.g. for TCP, UDP, or
if AF_UNSPEC is passed).
So using getaddrinfo() could incur a non-negligible overhead.

So it might be better to just use inet_pton() instead.
History
Date User Action Args
2013-08-22 07:11:34neologixsetrecipients: + neologix, loewis
2013-08-22 07:11:34neologixlinkissue18806 messages
2013-08-22 07:11:34neologixcreate