Jeff Trawick wrote:
> FD_SET is rather unfriendly if you give it a file descriptor that is >=
> FD_SETSIZE. It will overlay storage.
> Any comments? Yeah, the error code sucks. APR_ENOPOLL? APR_ENOSOCKET?
What's wrong with APR_EBADF? That give me a good hint of what the problem is
without having to grep/Google/look stuff up.
Greg
> +#if !defined(WIN32) /* socket sets handled with array of handles */
> + if (fd >= FD_SETSIZE) {
> + /* XXX invent new error code so application has a clue */
> + return APR_EBADF;
> + }
|