Mailinglist Archive: opensuse-bugs (6630 mails)

< Previous Next >
[Bug 530440] mysterious delay in processing of DNS replies in aria2c
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Sun, 16 Aug 2009 06:54:37 -0600
  • Message-id: <20090816125437.1C8D8245513@xxxxxxxxxxxxxxxxxxxxxx>
http://bugzilla.novell.com/show_bug.cgi?id=530440

User tatsuhiro.t@xxxxxxxxx added comment
http://bugzilla.novell.com/show_bug.cgi?id=530440#c9





--- Comment #9 from Tatsuhiro Tsujikawa <tatsuhiro.t@xxxxxxxxx> 2009-08-16
06:54:26 MDT ---
aria2 uses getaddrinfo function to resolve address(it supports asynchronous dns
lookup, but according to the strace log, it is not compiled in, so I assume it
is disabled).
I searched about getaddrinfo and slow DNS lookup and found that it was caused
by slow AAAA record lookup. It seems that even if ipv6 is disabled by the
system configuration, getaddrinfo by default lookup AAAA records along with A.
Some name server are very slow to resolve IPv6 addresses(sorry I don't know
why).
If name server is slow for AAAA lookup, I think all we can do is not issuing
AAAA request and only issue A lookup.

I think AI_ADDRCONFIG flag for getaddrinfo might help.
Its man page said that:

If hints.ai_flags includes the AI_ADDRCONFIG flag, then IPv4 addresses
are returned in the list pointed to by result only if the local system
has at least one IPv4 address configured, and IPv6 addresses are only
returned if the local system has at least one IPv6 address configured.

I'll upload a patch to use AI_ADDRCONFIG flag.

--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
References