Date: Thu, 23 Feb 2006 23:57:27 +0200 From: Rostislav Krasny <rosti.bsd@gmail.com> To: Hajimu UMEMOTO <ume@freebsd.org> Cc: freebsd-stable@freebsd.org, freebsd-stable-local@be-well.ilk.org, yar@comp.chem.msu.su, dwmalone@maths.tcd.ie, des@des.no, mak@ll.mit.edu, MH@kernel32.de Subject: Re: SSH login takes very long time...sometimes Message-ID: <20060223235727.33cddb13.rosti.bsd@gmail.com> In-Reply-To: <yge1wxvz5ha.wl%ume@mahoroba.org> References: <59e2ee810512250841t75157e62rec9dc389ac716534@mail.gmail.com> <20051227101621.GA16276@walton.maths.tcd.ie> <86irrfoix5.fsf@xps.des.no> <20060218012029.e146e2ff.rosti.bsd@gmail.com> <20060219104912.GB20500@comp.chem.msu.su> <20060219225701.0e3e244b.rosti.bsd@gmail.com> <20060221165959.GB77513@comp.chem.msu.su> <20060222024430.ad4b5c60.rosti.bsd@gmail.com> <yge1wxvz5ha.wl%ume@mahoroba.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --Multipart=_Thu__23_Feb_2006_23_57_27_+0200_tlC6au_hl+CwgArA Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 23 Feb 2006 02:08:17 +0900 Hajimu UMEMOTO <ume@freebsd.org> wrote: > Hi, > > >>>>> On Wed, 22 Feb 2006 02:44:30 +0200 > >>>>> Rostislav Krasny <rosti.bsd@gmail.com> said: > > rosti> On Tue, 21 Feb 2006 19:59:59 +0300 > rosti> Yar Tikhiy <yar@comp.chem.msu.su> wrote: > > rosti> I forgot that a "search" resolver(5) parameter is useless for reverse > rosti> resolving. But that "doubling" of name->IP requests with an empty (or > rosti> root, according to resolver(5)) domain in the "search" is still a bug, > rosti> IMHO. Although it shouldn't affect the sshd. > > I looked BIND9's resolver, and took the related part into our > resolver. However, it seems to me that there is still same issue in > BIND9's resolver. So, I change more bit. Please try the following > patch and let me know the result: Your patch fixed the problem, thank you. But during my tests I've found another form of "doubling" bug in getaddrinfo(). To test the getaddrinfo() behavior I used a program that is attached to this email. If hints.ai_socktype == 0 then the getaddrinfo() does the lookup twice, even if DNS is reachable. If the latter is the case, returned linked list is twice as large than it should be. The hints.ai_socktype seems to have the same influence when hints.ai_family is PF_INET6 or PF_UNSPEC too. --Multipart=_Thu__23_Feb_2006_23_57_27_+0200_tlC6au_hl+CwgArA--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060223235727.33cddb13.rosti.bsd>