checks against FD_SETSIZE in _PR_MD_PR_POLL() function (w32poll.c)
Aleksey Sanin <[email protected]> Mon, 17 Nov 2008 13:40:26 -0800
| Newsgroups | gmane.comp.mozilla.devel.nspr |
|---|---|
| Message-ID | <[email protected]> |
Hi All!
There is a check for FD_SETSIZE in _PR_MD_PR_POLL()
function (w32poll.c):
if ((nrd > FD_SETSIZE) || (nwt > FD_SETSIZE) || (nex > FD_SETSIZE)) {
PR_SetError(PR_INVALID_ARGUMENT_ERROR, 0);
return -1;
}
and I am not sure what is the purpose of this check. It seems
like the WinSock select() function has no restriction on the
number of sockets passed in. Could you please clarify this?
Thanks
Aleksey Sanin