From owner-freebsd-hackers Sun Dec 22 5:18:58 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 E383837B401 for ; Sun, 22 Dec 2002 05:18:56 -0800 (PST) Received: from bran.mc.mpls.visi.com (bran.mc.mpls.visi.com [208.42.156.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7873243ED8 for ; Sun, 22 Dec 2002 05:18:56 -0800 (PST) (envelope-from hawkeyd@visi.com) Received: from sheol.localdomain (hawkeyd-fw.dsl.visi.com [208.42.101.193]) by bran.mc.mpls.visi.com (Postfix) with ESMTP id 84CE04B0C for ; Sun, 22 Dec 2002 07:18:55 -0600 (CST) Received: (from hawkeyd@localhost) by sheol.localdomain (8.11.6/8.11.6) id gBMDIsa86956 for freebsd-hackers@freebsd.org; Sun, 22 Dec 2002 07:18:54 -0600 (CST) (envelope-from hawkeyd) Date: Sun, 22 Dec 2002 07:18:54 -0600 From: D J Hawkey Jr To: freebsd-hackers@freebsd.org Subject: Multi-threaded or async Mozilla (NSPR, really) Message-ID: <20021222071854.A86914@sheol.localdomain> Reply-To: hawkeyd@visi.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i 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 all. If this isn't the right forum, please excuse me, and direct me to the correct group. Has anyone managed to hack a recent Mozilla release (say, 1.0 or later) to do async/threaded DNS lookups? Since gethostbyname() and related functions are in libc_r, I'm assuming it's doable. I've studied the configure scripts and tried a few hacks to them, tried the patch on Buzilla (http://bugzilla.mozilla.org/show_bug.cgi?id=70213), and a few other things, to no avail. It appears to be a NSPR thang, and threading is supported on AIX and OSF. The easy hacks, setting _PR_HAVE_THREADSAFE_GETHOST and _PR_HAVE_GETHOST_R, as those systems do, don't seem to have any effect. Setting up the use of libc_r.h (after changing the appropriate function names in it) creates compile problems that lead me to believe that's the wrong approach. Has anyone pulled this off? I'm d*mn tired of waiting on a DNS lookup of toolbar.aol.com when at www.cnn.com. My local DNS server responds as I would expect with nslookup, so it isn't a local bind thang. 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?? All-too-common caveat: I'm not subscribed, so please CC me in replies to the group (or visa-versa). Thanks, Dave -- ______________________ ______________________ \__________________ \ D. J. HAWKEY JR. / __________________/ \________________/\ hawkeyd@visi.com /\________________/ http://www.visi.com/~hawkeyd/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message