Skip to content

Commit

Permalink
fix bug #5432 (#5434)
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFreeman authored Aug 7, 2024
1 parent ef6a130 commit 597abb7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/server/process.cc
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ pid_t Factory::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 (server_->is_base_mode()) {
server_->gs->connection_nums[worker->id] = 0;
server_->gs->event_workers.main_loop(&server_->gs->event_workers, worker);
Expand Down

0 comments on commit 597abb7

Please sign in to comment.