Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Dec 2002 07:18:54 -0600
From:      D J Hawkey Jr <hawkeyd@visi.com>
To:        freebsd-hackers@freebsd.org
Subject:   Multi-threaded or async Mozilla (NSPR, really)
Message-ID:  <20021222071854.A86914@sheol.localdomain>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021222071854.A86914>