From owner-freebsd-hackers Tue Dec 31 3:58: 7 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 E2C5B37B401 for ; Tue, 31 Dec 2002 03:58:04 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6243043EDC for ; Tue, 31 Dec 2002 03:58:03 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id gBVBvs9Y073709 for ; Tue, 31 Dec 2002 11:57:54 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id gBVBvnNX073708 for freebsd-hackers@freebsd.org; Tue, 31 Dec 2002 11:57:49 GMT Date: Tue, 31 Dec 2002 11:57:49 +0000 From: Matthew Seaman To: freebsd-hackers@freebsd.org Subject: Re: Multi-threaded or async Mozilla (NSPR, really) Message-ID: <20021231115748.GA73141@happy-idiot-talk.infracaninophi> Mail-Followup-To: freebsd-hackers@freebsd.org References: <20021222071854.A86914_sheol.localdomain@ns.sol.net> <20021222154722.GA8522_happy-idiot-talk.infracaninophi@ns.sol.net> <200212310156.gBV1ukw03272@sheol.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200212310156.gBV1ukw03272@sheol.localdomain> User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-3.0 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_02_03, USER_AGENT,USER_AGENT_MUTT 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 On Mon, Dec 30, 2002 at 07:56:46PM -0600, D J Hawkey Jr wrote: > In article <20021222154722.GA8522_happy-idiot-talk.infracaninophi@ns.sol.net>, > 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. > > After looking at the man page, and understanding all of ~35% of it, I'll > ask this: Are you referring to the oft-mentioned, ill-configured, INET6 > records in some DNS servers, or are you referring to less-than-correct > code in FreeBSD's TCP/IP stack, or are NSPR's routines indeed flawed? None of the above --- although they may have an effect in addition to what's observed. It's sites that run DNS server software that doesn't do the right thing when confronted by a lookup of a RR type they don't recognise. Instead of returning a "not found" result, they seem to not reply at all, which leaves the machine asking the question no option but to sit and wait until the 30s timeout before it can assume it's not going to get a reply. Quite apart from the fact that a AAAA request (let alone A6 or DNAME or any of the other more recently introduced types) is hardly that exotic nowadays and any reasonable DNS server software should be able to cope, even if there is no appropriate data available. It's particularly annoying that the prime culprits always seem to be the companies that run banner adverts, and you're left waiting for some silly top of the page image before your browser will render the rest of the page which it has retrieved quite smartly. I've found the http://www.theregister.co.uk/ quite often suffers like that. Of course, just telling Mozilla to refuse the images from the advertiser makes things a whole lot nicer. > I guess I'll ask this, too: is getaddrinfo(3) called by gethostbyname(3)? > It's the latter that Mozilla/NSPR calls, and is the blamed culprit. Hmmm... it seems not to. My misunderstanding, although it doesn't detract from my main point. According to the man page getaddrinfo(3) is apparently a more modern replacement for gethostbyname(3), and I'd read that as implying that it handled IPv6 whereas gethostbyname(3) didn't. However, a quick peek at the gethostbyname(3) source shows that it is IPv6 capable too, and that gethostbyname(3) doesn't call getaddrinfo(3) or vice versa. > For giggles, I disabled INET6 in the kernel, re- built and installed it, > and the problem vanished. But this doesn't answer the question: Is it > problematic DNS records, a problematic OS, or what? The second, I doubt... It is no fault of yours, for using an OS that follows standards like RFC 2553 which have only been around for 4 years. Eventually, the rest of the world will catch up... > Windows: "Where do you want to go today?" > Linux: "Where do you want to go tomorrow?" > FreeBSD: "Are you guys coming, or what?" Exactly. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message