\Workerman\Events\Select::add
$count = $flag === self::EV_READ ? \count($this->_readFds) : \count($this->_writeFds);
if ($count >= 1024) {
echo "Warning: system call select exceeded the maximum number of connections 1024, please install event/libevent extension for more connections.\n";
} else if (\DIRECTORY_SEPARATOR !== '/' && $count >= 256) {
echo "Warning: system call select exceeded the maximum number of connections 256.\n";
}
\Workerman\Events\Select::loop
$ret = @stream_select($read, $write, $except, 0, $this->_selectTimeout);
結(jié)論:
1.這是個(gè)warning,不是error
2.報(bào)這個(gè)warning目的不明,似乎不是php限制,應(yīng)該是出于性能考慮
3.數(shù)量指fds數(shù)量,fds目前粗看包括很多東西,似乎包括timer什么的