This commit is contained in:
2023-03-31 10:29:28 +08:00
parent 518318ddc8
commit a2a1699ef6
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ class Server extends HttpService
return;
}
Coroutine::set([
'hook_flags' => SWOOLE_HOOK_ALL ^ SWOOLE_HOOK_BLOCKING_FUNCTION,
'hook_flags' => (SWOOLE_HOOK_ALL | SWOOLE_HOOK_CURL) ^ SWOOLE_HOOK_BLOCKING_FUNCTION,
'enable_deadlock_check' => FALSE,
'exit_condition' => function () {
return Coroutine::stats()['coroutine_num'] === 0;