Skip to content

Commit

Permalink
Use non-blocking mode for swoole process. (#5762)
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo authored May 27, 2023
1 parent 06ce096 commit e804c32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/AbstractProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ protected function bindServer(Server $server): void
sleep($this->restartInterval);
}
}, $this->redirectStdinStdout, $this->pipeType, $this->enableCoroutine);
$process->setBlocking(false);
$server->addProcess($process);

if ($this->enableCoroutine) {
Expand Down

0 comments on commit e804c32

Please sign in to comment.