diff --git a/src/Swoole/Actions/EnsureRequestsDontExceedMaxExecutionTime.php b/src/Swoole/Actions/EnsureRequestsDontExceedMaxExecutionTime.php index a84b7cc4e..787ea9fa2 100644 --- a/src/Swoole/Actions/EnsureRequestsDontExceedMaxExecutionTime.php +++ b/src/Swoole/Actions/EnsureRequestsDontExceedMaxExecutionTime.php @@ -27,6 +27,10 @@ public function __invoke() if ((time() - $row['time']) > $this->maxExecutionTime) { $this->timerTable->del($workerId); + if ($this->server instanceof Server && ! $this->server->exists($row['fd'])) { + continue; + } + $this->extension->dispatchProcessSignal($row['worker_pid'], SIGKILL); if ($this->server instanceof Server) {