From owner-freebsd-stable@FreeBSD.ORG Sat May 3 12:48:07 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A60237B401 for ; Sat, 3 May 2003 12:48:07 -0700 (PDT) Received: from gw.catspoiler.org (217-ip-163.nccn.net [209.79.217.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 469E643F75 for ; Sat, 3 May 2003 12:48:06 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (scratch.catspoiler.org [192.168.101.3]) by gw.catspoiler.org (8.12.9/8.12.9) with ESMTP id h43JlwM7020788; Sat, 3 May 2003 12:48:02 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <200305031948.h43JlwM7020788@gw.catspoiler.org> Date: Sat, 3 May 2003 12:47:58 -0700 (PDT) From: Don Lewis To: behanna@zbzoom.net In-Reply-To: <20030503150012.K6930@topperwein.pennasoft.com> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii cc: freebsd-stable@FreeBSD.org Subject: Re: IPv6 Resolver (or: Slow rendering of Webpages using Konqueror) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 May 2003 19:48:07 -0000 On 3 May, Chris BeHanna wrote: > On Wed, 30 Apr 2003, Don Lewis wrote: > >> On 30 Apr, Andrew P. Lentvorski, Jr. wrote: >> >> > I have issues which somewhat match those symptoms. On FreeBSD 4.8, >> > Mozilla will occasionally get "stuck" for a couple minutes (the first time >> > I hit dilbert.com in a day seems to be a fairly reliable culprit). After >> > that, it seems to run fine for an hour or so, at which point it will get >> > stuck on some random site again. Wait a couple minutes, then it will be >> > fine again. Lather, rinse, repeat. >> >> I had this problem as well a while back until I neutered Mozilla so that >> it wouldn't do the IPv6 address lookups anymore. > > It'd be great if you could produce patches so that Mozilla could > be built with a "WITHOUT_IPV6" knob. > > That's a band-aid on the problem of broken nameservers, yes, but > it'll help novices get over the hump. It doesn't help users who install a precompiled package. It might be easier for them to build and install a kernel without INET6. Anyway, here's the patch file that I used, but it doesn't have a handy knob for turning IPv6 on and off. I think only one part of the patch is necessary, but the source code is complex enough that it took me several attempts to disable the unwanted behaviour. --- nsprpub/pr/src/io/pripv6.c.orig Tue Apr 9 20:17:02 2002 +++ nsprpub/pr/src/io/pripv6.c Sun Jul 21 04:00:06 2002 @@ -307,7 +307,7 @@ if (NULL != _pr_freehostent_fp) { _pr_getipnodebyaddr_fp = PR_FindSymbol(lib, GETIPNODEBYADDR); if (NULL != _pr_getipnodebyaddr_fp) - _pr_ipv6_is_present = PR_TRUE; + _pr_ipv6_is_present = PR_FALSE; else _pr_ipv6_is_present = PR_FALSE; } else --- nsprpub/pr/src/io/prsocket.c.orig Tue Apr 9 20:17:03 2002 +++ nsprpub/pr/src/io/prsocket.c Sun Jul 21 14:36:15 2002 @@ -1256,7 +1256,7 @@ osfd = _PR_MD_SOCKET(AF_INET6, SOCK_STREAM, 0); if (osfd != -1) { _PR_MD_CLOSE_SOCKET(osfd); - return PR_TRUE; + return PR_FALSE; } return PR_FALSE; } --- nsprpub/pr/src/pthreads/ptio.c.orig Thu Apr 11 11:14:39 2002 +++ nsprpub/pr/src/pthreads/ptio.c Sun Jul 21 14:48:47 2002 @@ -3363,7 +3363,7 @@ osfd = socket(AF_INET6, SOCK_STREAM, 0); if (osfd != -1) { close(osfd); - return PR_TRUE; + return PR_FALSE; } return PR_FALSE; }