swoole MAX_CONN设置过小后出现如下的问题?

phpproject$ php testasync1.php [2016-08-07 00:37:51 @2774.0] WARNING swServer_start_check: serv->max_connection is too small.

[2016-08-07 00:37:56 *2785.1] ERROR swWorker_discard_data (ERROR 1007): [1]received the wrong data[9 bytes] from socket#1

Server端无法接收到数据? 附上设置的最大连接数配置: $serv->set(array('task_worker_num' => 4,'max_conn'=>2));

swoole版本: @ubuntu:~/phpproject$ php --re swoole | grep VERSION Constant [ string SWOOLE_VERSION ] { 1.8.6 }
已邀请:

张三俗

赞同来自:

最小设置

此选项设置过小底层会抛出错误,并设置为ulimit -n的值。
最小值为(serv->worker_num + SwooleG.task_worker_num) * 2 + 32
serv->max_connection is too small.

http://wiki.swoole.com/wiki/page/282.html

要回复问题请先登录注册