Subject: Re: increasing FD_SETSIZE to 1024 or 2048?
To: None <>
From: John Kohl <>
List: current-users
Date: 07/04/2000 18:39:46
>>>>> "Todd" == Todd Vierling <> 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

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 <>, <>
Home page: <>
Bicycling and Skiing to keep fit.