On Fri, 24 Feb 2006 11:50:25 +0900 Hajimu UMEMOTO <[EMAIL PROTECTED]> wrote:
> Hi, Hello > >>>>> On Thu, 23 Feb 2006 23:57:27 +0200 > >>>>> Rostislav Krasny <[EMAIL PROTECTED]> said: > > rosti> Your patch fixed the problem, thank you. > > Thank you for testing. I'll commit it later. Excellent! What about RES_DFLRETRY decreasing from 4 to 2? Does it need more testing or discussion? > rosti> But during my tests I've found > rosti> another form of "doubling" bug in getaddrinfo(). To test the > getaddrinfo() > rosti> behavior I used a program that is attached to this email. > rosti> If hints.ai_socktype == 0 then the getaddrinfo() does the lookup twice, > rosti> even if DNS is reachable. If the latter is the case, returned linked > rosti> list is twice as large than it should be. The hints.ai_socktype seems > rosti> to have the same influence when hints.ai_family is PF_INET6 or > rosti> PF_UNSPEC too. > > No, it is expected behavior of getaddrinfo(3). If hints.ai_socktype > is zero, getaddrinfo(3) returns the entries for all available > socktypes. Though getaddrinfo(3) returns doubled linkd list, > getaddrinfo(3) does DNS lookup just once for all. If you don't want > it, you need to specify appropriate socktype explicitly. Ok. It was just not clear when I read the manual and saw, by tcpdump, two for example 'A? yahoo.com.' requests to a reachable DNS. _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"