From da3586897acab584bf95a624db6b2b7340321de9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=94=81?= <52o@qq52o.cn> Date: Fri, 24 Mar 2023 20:51:23 +0800 Subject: [PATCH] Support setting swoole server mode (#666) --- bin/createSwooleServer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/createSwooleServer.php b/bin/createSwooleServer.php index 764677f18..b75a1f523 100644 --- a/bin/createSwooleServer.php +++ b/bin/createSwooleServer.php @@ -5,8 +5,8 @@ try { $server = new Swoole\Http\Server( $serverState['host'] ?? '127.0.0.1', - $serverState['port'] ?? '8080', - SWOOLE_PROCESS, + $serverState['port'] ?? 8080, + $serverState['mode'] ?? SWOOLE_PROCESS, ($config['swoole']['ssl'] ?? false) ? SWOOLE_SOCK_TCP | SWOOLE_SSL : SWOOLE_SOCK_TCP,