Skip to content

Commit

Permalink
Shorten timeout compatible with SWOW to receive signals.
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor committed Jan 24, 2025
1 parent 1d54c2c commit 3eab92b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Events/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ final class Select implements EventInterface
*
* @var int
*/
private int $selectTimeout = 100000000;
private int $selectTimeout = 800000;

/**
* Next run time of the timer.
Expand Down Expand Up @@ -357,7 +357,7 @@ protected function setNextTickTime(float $nextTickTime): void
{
$this->nextTickTime = $nextTickTime;
if ($nextTickTime == 0) {
$this->selectTimeout = 10000000;
$this->selectTimeout = 800000;
return;
}
$timeNow = microtime(true);
Expand Down

0 comments on commit 3eab92b

Please sign in to comment.