fd_set beyond 1024 problem
Date: Wed, 30 May 2007 09:35:31 +0200 (CEST)
I've realized that we use fd_set internally, even when we use poll() (in the
If we raise the maximum number of filedescriptors above 1024 and use more than
1024 in a libcurl-using application, the FD_SET(), FD_CLEAR() etc macros (and
even the select() function) write beyond the boundary of the fd_set variable
and all sorts of funny things happen.
It isn't clear to me what the portable way of raising this limit is for
fd_set, but I feel a strong urge to fix this issue.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-05-30