Re: FD_SETSIZE limitation
| From: | Moriyoshi Koizumi | Date: | Fri, 20 Feb 2009 03:00:49 +0000 |
| Subject: | Re: FD_SETSIZE limitation | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-43126@lists.php.net to get a copy of this message | ||
That's because struct fd_set, which is manipulated by FD_SET, is a
struct that contains a fixed-size array.
Moriyoshi
Andrei Zmievski wrote:
> Can someone explain why ext/sockets and also stream socket functions
> care about FD_SETSIZE?
>
> # define PHP_SAFE_FD_SET(fd, set) do { if (fd < FD_SETSIZE) FD_SET(fd,
> set); } while(0)
>
> On Linux, it's not a hard limitation imposed by the kernel. It's
> configurable via sysctl.
>
> -Andrei
>