Subject: Re: increasing FD_SETSIZE to 1024 or 2048?
From: Ignatios Souvatzis <firstname.lastname@example.org>
Date: 07/03/2000 21:09:10
On Mon, Jul 03, 2000 at 06:25:08PM +0200, Wolfgang Solfrank wrote:
> > FD_SETSIZE is currently 256. Is there a good reason not to bump it to
> > something more appropriate for today's machines, like 1024 or 2048?
> > So it has a big potential payback for those who want it, at
> > relatively little cost.
> Are you aware that there is nothing to stop an application to use
> a larger FD_SETSIZE if it so desires? Just #define FD_SETSIZE xxx
> before the #include <sys/types.h>, and everything will work as expected.
> No need to generate a new kernel or something.
Wolfgang: what happens of both a library and yourself are doing an (possibly
I think this example was given last time this was discussed on one
of our mailing lists, but I don't remember the details.