Skip to content

Commit

Permalink
Remove timeout on processing
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwedgbury committed Dec 13, 2023
1 parent 480f7b4 commit f027d36
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions src/ZSTD.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,16 @@ public static function compressDataFromStream(&$inputStream, $outputCallback): v
{
$zstd = self::getZstdPath();

$process = new Process([
$zstd,
'--force',
]);
$process = new Process(
[
$zstd,
'--force',
],
null,
null,
null,
0,
);

$process->setInput($inputStream);
$process->start();
Expand All @@ -63,11 +69,17 @@ public static function compressDataFromStream(&$inputStream, $outputCallback): v
public static function decompressDataFromStream(&$inputStream, $outputCallback): void
{
$zstd = self::getZstdPath();
$process = new Process([
$zstd,
'--force',
'-d',
]);
$process = new Process(
[
$zstd,
'--force',
'-d',
],
null,
null,
null,
0,
);

$process->setInput($inputStream);
$process->start();
Expand Down

0 comments on commit f027d36

Please sign in to comment.