Re: FD_SETSIZE problem on Linux

From: (no name) (no email)
Date: Fri Feb 20 2004 - 09:09:59 EST


On Fri, 20 Feb 2004, Wietse Venema wrote:

> My point is, if user override of FD_SETSIZE not defined for Linux
> then there is no point for me to document your specific solution
> with Postfix because it will break tomorrow.
>

Indeed it appears that glibc does not intentionally support using a larger
FD_SETSIZE, and that the __FD_SETSIZE workaround used by some applications
violates the interface. The official position (at least for 2.4 kernels)
seems to be that applications wanting to multiplex I/O on more than 1024
descriptors need to use poll() rather than select().

So the right answer for Postfix it seems is to either not support
FD_SETSIZE > 1024 with Linux or to support poll().

-- 
	Viktor.







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD