Skip to content

Commit 2f1615b

Browse files
committed
ParallelAnalyser - do not allow to go below the default timeout
1 parent 29fcf80 commit 2f1615b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Parallel/ParallelAnalyser.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
class ParallelAnalyser
1818
{
1919

20+
private const DEFAULT_TIMEOUT = 600.0;
21+
2022
private int $internalErrorsCountLimit;
2123

2224
private float $processTimeout;
@@ -32,7 +34,7 @@ public function __construct(
3234
)
3335
{
3436
$this->internalErrorsCountLimit = $internalErrorsCountLimit;
35-
$this->processTimeout = $processTimeout;
37+
$this->processTimeout = max($processTimeout, self::DEFAULT_TIMEOUT);
3638
$this->decoderBufferSize = $decoderBufferSize;
3739
}
3840

0 commit comments

Comments
 (0)