From e65e6d049f97e3297c9acfdbf1bed0d7755fb2c1 Mon Sep 17 00:00:00 2001 From: MARiA so cute <33935209+NathanFreeman@users.noreply.github.com> Date: Wed, 7 Aug 2024 17:28:37 +0800 Subject: [PATCH] fix bug #5432 (#5435) --- src/server/manager.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/server/manager.cc b/src/server/manager.cc index 114c50bc97a..efe33394a68 100644 --- a/src/server/manager.cc +++ b/src/server/manager.cc @@ -614,6 +614,11 @@ pid_t Server::spawn_event_worker(Worker *worker) { worker->concurrency = 0; } + // see https://github.com/swoole/swoole-src/issues/5432 + worker->request_count = 0; + worker->response_count = 0; + worker->dispatch_count = 0; + if (is_base_mode()) { gs->connection_nums[worker->id] = 0; gs->event_workers.main_loop(&gs->event_workers, worker);