From owner-freebsd-hackers Mon Nov 16 14:31:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA25945 for freebsd-hackers-outgoing; Mon, 16 Nov 1998 14:31:07 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from phobos.illtel.denver.co.us (phobos.illtel.denver.co.us [207.33.75.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA25937 for ; Mon, 16 Nov 1998 14:31:03 -0800 (PST) (envelope-from abelits@phobos.illtel.denver.co.us) Received: from localhost (abelits@localhost) by phobos.illtel.denver.co.us (8.9.1a/8.6.9) with SMTP id OAA13081; Mon, 16 Nov 1998 14:32:19 -0800 Date: Mon, 16 Nov 1998 14:32:19 -0800 (PST) From: Alex Belits To: Terry Lambert cc: Bakul Shah , nate@mt.sri.com, hackers@FreeBSD.ORG Subject: Re: Supporting more than FD_SETSIZE fd's In-Reply-To: <199811162109.OAA03119@usr08.primenet.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 16 Nov 1998, Terry Lambert wrote: > Right. > > The problem that normally occurs in naieve net code is this: > > cnt = getdtablesize(); > select( cnt + 1, ...) > > The UMICH LDAP server has code like this, and there's a *lot* of > Linux code that operates like this, on the assumption that the > getdtablesize() function will never return more than FD_SETSIZE > number of descriptors. rxvt has (or had? I have sent a patch but never checked if it was accepted) that problem, too. -- Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message