system call select exceeded the maximum number of connections 256.

freeng

\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);

结论:
1.这是个warning,不是error
2.报这个warning目的不明,似乎不是php限制,应该是出于性能考虑
3.数量指fds数量,fds目前粗看包括很多东西,似乎包括timer什么的

1488 1 0
1个回答

2548a

你这个是windows 系统吧, windows下最多支持256个连接

  • 暂无评论
年代过于久远,无法发表回答
×
🔝