Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor committed Feb 3, 2025
1 parent 754861f commit d0e9b75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Events/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,8 @@ protected function setNextTickTime(float $nextTickTime): void
{
$this->nextTickTime = $nextTickTime;
if ($nextTickTime == 0) {
// Set a shorter timeout so that swow can timely detect the signal.
// Swow will affect the signal interruption characteristics of stream_select,
// so a shorter timeout should be used to detect signals.
$this->selectTimeout = 800000;
return;
}
Expand Down

0 comments on commit d0e9b75

Please sign in to comment.