From owner-freebsd-hackers Tue Dec 31 0:24:35 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D460637B401 for ; Tue, 31 Dec 2002 00:24:33 -0800 (PST) Received: from cheer.mahoroba.org (flets20-180.kamome.or.jp [218.45.20.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9B8843ED8 for ; Tue, 31 Dec 2002 00:24:26 -0800 (PST) (envelope-from ume@mahoroba.org) Received: from mille.mahoroba.org (IDENT:iC5s3XMHqpoIkAPg7oIXHfhJr4qFURrFzpNiKNeqtIMdhIte7YEZ0bSvl79j1x2N@mille.mahoroba.org [IPv6:2001:200:301:0:202:2dff:fe0a:6bee]) (user=ume mech=CRAM-MD5 bits=0) by cheer.mahoroba.org (8.12.6/8.12.6) with ESMTP/inet6 id gBV8OEiq039276 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 31 Dec 2002 17:24:17 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Tue, 31 Dec 2002 17:24:14 +0900 Message-ID: From: Hajimu UMEMOTO To: hawkeyd@visi.com Cc: m.seaman@infracaninophile.co.uk, freebsd-hackers@freebsd.org Subject: Re: Multi-threaded or async Mozilla (NSPR, really) In-Reply-To: <200212310156.gBV1ukw03272@sheol.localdomain> References: <20021222071854.A86914_sheol.localdomain@ns.sol.net> <20021222154722.GA8522_happy-idiot-talk.infracaninophi@ns.sol.net> <200212310156.gBV1ukw03272@sheol.localdomain> User-Agent: xcite1.38> Wanderlust/2.11.0 (Wonderwall) SEMI/1.14.4 (Hosorogi) FLIM/1.14.4 (=?ISO-8859-4?Q?Kashiharajing=FE-mae?=) APEL/10.4 Emacs/21.2 (i386--freebsd) MULE/5.0 (=?ISO-2022-JP?B?GyRCOC1MWhsoQg==?=) X-Operating-System: FreeBSD 4.7-STABLE MIME-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) X-Spam-Status: No, hits=-2.1 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02, USER_AGENT version=2.43 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, >>>>> On Mon, 30 Dec 2002 19:56:46 -0600 (CST) >>>>> D J Hawkey Jr said: hawkeyd> In article <20021222154722.GA8522_happy-idiot-talk.infracaninophi@ns.sol.net>, hawkeyd> m.seaman@infracaninophile.co.uk writes: > On Sun, Dec 22, 2002 at 07:18:54AM -0600, D J Hawkey Jr wrote: > >> I can't imagine what Moz is doing within it's DNS code, even with the >> serialized DNS lookups. If nslookup replies within fractions of a second, >> why doesn't Moz?? > > Take a look at look at the getaddrinfo(3) man page and then try doing > a look up of the AAAA or A6 records for the troublesome locations. hawkeyd> After looking at the man page, and understanding all of ~35% of it, I'll hawkeyd> ask this: Are you referring to the oft-mentioned, ill-configured, INET6 hawkeyd> records in some DNS servers, or are you referring to less-than-correct hawkeyd> code in FreeBSD's TCP/IP stack, or are NSPR's routines indeed flawed? hawkeyd> I guess I'll ask this, too: is getaddrinfo(3) called by gethostbyname(3)? hawkeyd> It's the latter that Mozilla/NSPR calls, and is the blamed culprit. Mozilla doesn't call getaddrinfo(). Mozilla uses gethostbyname2() to resolve hostname. Since gethostbyname2() doesn't have a capability of querying A RR and AAAA RR at same time, Mozilla calls gethostbyname2() for AAAA RR 1st, then calls gethostbyname2() for A RR. hawkeyd> For giggles, I disabled INET6 in the kernel, re- built and installed it, hawkeyd> and the problem vanished. But this doesn't answer the question: Is it hawkeyd> problematic DNS records, a problematic OS, or what? The second, I doubt... I believe that Mozilla should be re-written by using getaddrinfo(). Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message