Bug#330105: libc6-dev: __FD_SETSIZE equals to 1024 is too small
On Tue, Feb 06, 2007 at 12:49:24AM +0100, Pierre Habouzit wrote:
> TTBOMK __FD_SETSIZE is only used for fd_set's (so select, FD_* macros,
> ...), and redefining it won't work (I tried already in another life)
> without recompiling the libc at least -- if not the kernel too, I'm less
> sure about that one -- and that would be obvioulsy binary incompatible
> with the rest of the linuxes around the globe :)
"Just" libc and everything that uses select - basically you have to
rebuild the whole archive.
AFAIK sys_select() in the kernel can handle arbitrary large number of
file descriptiors, so one option is not to use glibc's select() wrapper
but do your own. But a much better approach (both maintainability and
performance wise) is to use epoll().
Gabor
--
---------------------------------------------------------
MTA SZTAKI Computer and Automation Research Institute
Hungarian Academy of Sciences
---------------------------------------------------------
Reply to: