RFR [9] 8035897 : FD_SETSIZE should be set on macosx
Florian Weimer
fweimer at redhat.com
Mon Aug 18 15:10:08 UTC 2014
On 02/28/2014 03:40 PM, Chris Hegarty wrote:
> Either:
> 1) FD_SETSIZE needs to be set to a larger value, but what value, the
> kernel limit, or other? This is wasteful for most typical apps that
> don't use large numbers of file descriptors. Or,
> 2) If fd is greater than 1024, then an appropriate amount of memory
> could be allocated and cast to an fd_set. The FD_SET macro will
> write past FD_SETSIZE.
3) use poll
Why do we have to use select here?
--
Florian Weimer / Red Hat Product Security
More information about the net-dev
mailing list