Skip to content

Commit

Permalink
fix bug #5432 (#5435)
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFreeman committed Aug 7, 2024
1 parent e5909cd commit e65e6d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/server/manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e65e6d0

Please sign in to comment.