curl-library
fd_set beyond 1024 problem
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 30 May 2007 09:35:31 +0200 (CEST)
Date: Wed, 30 May 2007 09:35:31 +0200 (CEST)
Hi
I've realized that we use fd_set internally, even when we use poll() (in the
select()-"simulating" function).
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