Subject: Re: increasing FD_SETSIZE to 1024 or 2048?
To: None <tv@pobox.com>
From: John Kohl <jtk@kolvir.arlington.ma.us>
List: current-users
Date: 07/04/2000 18:39:46
>>>>> "Todd" == Todd Vierling <tv@pobox.com> writes:

Todd> NetBSD doesn't ship any precompiled libraries that use select().  
Todd> (libresolv actually uses poll(), which has no limit imposed by FD_SETSIZE.)

You didn't include libc in this analysis.  The ONC RPC runtime uses
select inside its service handling code
(/usr/src/lib/libc/rpc/svc_run.c:svc_run()).

This causes problems if the calling program increases FD_SETSIZE and its
file descriptor process limit, and then expects high-numbered file
descriptors to work properly with the RPC runtime's built-in small
fd_sets.  To make it worse, the RPC runtime exports its fd_set as a
global symbol the program can tweak.  All callers had better use the
same set size!

-- 
==John Kohl <jtk@kolvir.arlington.ma.us>, <john_kohl@alum.mit.edu>
Home page: <http://people.ne.mediaone.net/jtk/>
Bicycling and Skiing to keep fit.