From 9ea3ee3bd3a56ca62e8e8e41fa1c48e79fcb4f92 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sat, 27 Feb 2021 04:53:30 +0800 Subject: [PATCH] modify --- HttpServer/Events/OnWorkerStart.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HttpServer/Events/OnWorkerStart.php b/HttpServer/Events/OnWorkerStart.php index 320fc8ea..fb11b3b3 100644 --- a/HttpServer/Events/OnWorkerStart.php +++ b/HttpServer/Events/OnWorkerStart.php @@ -37,12 +37,12 @@ class OnWorkerStart extends Callback */ public function onHandler(Server $server, int $worker_id): void { -// Coroutine::set([ -// 'enable_deadlock_check' => false, + Coroutine::set([ + 'enable_deadlock_check' => false, // 'exit_condition' => function () { // return Coroutine::stats()['coroutine_num'] === 0; // } -// ]); + ]); putenv('workerId=' . $worker_id); $get_name = $this->get_process_name($server, $worker_id);