From 33920ece680a1d90b61c4a0343702d41bac325f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Sun, 2 Apr 2023 00:50:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Server.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server.php b/Server.php index 6f124ec..a5fd186 100644 --- a/Server.php +++ b/Server.php @@ -72,12 +72,12 @@ class Server extends HttpService */ public function init(): void { - $enable_coroutine = Config::get('servers.settings.enable_coroutine', false); + $enable_coroutine = Config::get('server.settings.enable_coroutine', false); if (!$enable_coroutine) { return; } Coroutine::set([ - 'hook_flags' => (SWOOLE_HOOK_ALL | SWOOLE_HOOK_CURL) ^ SWOOLE_HOOK_BLOCKING_FUNCTION, + 'hook_flags' => SWOOLE_HOOK_ALL ^ SWOOLE_HOOK_BLOCKING_FUNCTION, 'enable_deadlock_check' => FALSE, 'exit_condition' => function () { return Coroutine::stats()['coroutine_num'] === 0;