Commit a7ecd16c authored by Administrator's avatar Administrator

更新swoole alarm

parent 371c0f3c
Pipeline #169 failed with stages
......@@ -57,15 +57,15 @@ class alarm extends Command
{
$url = config('public.swoolwebsocketurl');
$por = config('public.swoolwebsocketurlpor');
$this->ws = new \swoole_websocket_server('0.0.0.0', 9601,SWOOLE_PROCESS,SWOOLE_SOCK_TCP | SWOOLE_SSL); //创建一个端口
$this->ws = new \swoole_websocket_server('0.0.0.0', 9601,SWOOLE_PROCESS); //创建一个端口
$this->ws->set(array(
'reactor_num' => 2, //reactor线程数
'worker_num' => 4, //worker进程数
'backlog' => 128, //Listen队列长度
'max_request' => 10,//最大连接
'daemonize'=>0,//守护进程
'ssl_cert_file' => base_path() . '/tests/textcert/ssl.pem',
'ssl_key_file' => base_path() . '/tests/textcert/4544322_iot.zhkjgf.com.key',
// 'ssl_cert_file' => base_path() . '/tests/textcert/ssl.pem',
// 'ssl_key_file' => base_path() . '/tests/textcert/4544322_iot.zhkjgf.com.key',
// 'ssl_verify_peer' => true,
// 'ssl_allow_self_signed' => true,
// 'ssl_client_cert_file' => base_path() . '/tests/textcert/4544322_iot.zhkjgf.com_chain',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment