Skip to content

Commit

Permalink
ParallelAnalyser - do not allow to go below the default timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Aug 20, 2021
1 parent 29fcf80 commit 2f1615b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Parallel/ParallelAnalyser.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
class ParallelAnalyser
{

private const DEFAULT_TIMEOUT = 600.0;

private int $internalErrorsCountLimit;

private float $processTimeout;
Expand All @@ -32,7 +34,7 @@ public function __construct(
)
{
$this->internalErrorsCountLimit = $internalErrorsCountLimit;
$this->processTimeout = $processTimeout;
$this->processTimeout = max($processTimeout, self::DEFAULT_TIMEOUT);
$this->decoderBufferSize = $decoderBufferSize;
}

Expand Down

0 comments on commit 2f1615b

Please sign in to comment.