RFR [9] 8035897 : FD_SETSIZE should be set on macosx
Christos Zoulas
christos at zoulas.com
Mon Aug 18 15:36:26 UTC 2014
On Aug 18, 5:10pm, fweimer at redhat.com (Florian Weimer) wrote:
-- Subject: Re: RFR [9] 8035897 : FD_SETSIZE should be set on macosx
| 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?
Because poll is still broken on UDP sockets.
christos
More information about the net-dev
mailing list