From d62e4b2c471986bc6b6fa3702096b2f888e7b399 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sat, 27 Feb 2021 04:59:55 +0800 Subject: [PATCH] modify --- HttpServer/Events/OnWorkerStart.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/HttpServer/Events/OnWorkerStart.php b/HttpServer/Events/OnWorkerStart.php index 16ab6989..6ed9ae3e 100644 --- a/HttpServer/Events/OnWorkerStart.php +++ b/HttpServer/Events/OnWorkerStart.php @@ -39,9 +39,9 @@ class OnWorkerStart extends Callback { Coroutine::set([ 'enable_deadlock_check' => false, - 'exit_condition' => function () { - return Coroutine::stats()['coroutine_num'] === 0; - } +// 'exit_condition' => function () { +// return Coroutine::stats()['coroutine_num'] === 0; +// } ]); putenv('workerId=' . $worker_id); @@ -50,7 +50,7 @@ class OnWorkerStart extends Callback swoole_set_process_name($get_name); } -// $this->onSignal($server, $worker_id); + $this->onSignal($server, $worker_id); $this->debug(sprintf(workerName($worker_id) . ' #%d is start.....', $worker_id)); if ($worker_id >= $server->setting['worker_num']) {