From owner-freebsd-stable Wed Feb 28 10: 2:48 2001 Delivered-To: freebsd-stable@freebsd.org Received: from lerami.lerctr.org (lerami.lerctr.org [207.158.72.11]) by hub.freebsd.org (Postfix) with ESMTP id 6C71537B718 for ; Wed, 28 Feb 2001 10:02:42 -0800 (PST) (envelope-from ler@lerctr.org) Received: (from ler@localhost) by lerami.lerctr.org (8.11.2/8.11.2/20010112/$Revision: 1.13 $) id f1SI2et29197 for stable@FreeBSD.ORG; Wed, 28 Feb 2001 12:02:41 -0600 (CST) (envelope-from ler) Date: Wed, 28 Feb 2001 12:02:39 -0600 From: Larry Rosenman To: stable@FreeBSD.ORG Subject: Re: DNS & kqread (kq in general) Message-ID: <20010228120239.A28918@lerami.lerctr.org> References: <20010228095439.P20550@prism.flugsvamp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.15i In-Reply-To: <20010228095439.P20550@prism.flugsvamp.com>; from jlemon@flugsvamp.com on Wed, Feb 28, 2001 at 09:54:39AM -0600 X-Mailer: Mutt http://www.mutt.org/ Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Jonathan Lemon [010228 09:56]: > I"ve committed a fix for the problem where DNS hangs or takes > a long time to resolve (the process gets stuck in kqread). > > In the last kqueue update, I added a new filter-specific flag to > the read/write filters, which allows the filter to specify its > own read/write watermarks. However, since this flag was previously > unused, if you do not initialize the structure to zero, you may > get unexpected results. > > To that end, I'd encourage kqueue users to review their code and > make sure that the structure is completely initialized. A new > a new convenience macro EV_SET() was also added to > which should also assist this process. This fix fixes my -STABLE system. Welcome to FreeBSD! $ ./x And the answer is: beast.icomtek.csir.co.za And the answer is: beast.icomtek.csir.co.za $ cc -O -o x x.c $ ./x And the answer is: beast.icomtek.csir.co.za And the answer is: beast.icomtek.csir.co.za $ time ./x And the answer is: beast.icomtek.csir.co.za And the answer is: beast.icomtek.csir.co.za 0.00s real 0.00s user 0.00s system $ > -- > Jonathan > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 E-Mail: ler@lerctr.org US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message