From f027d368eb8c999ee1c71964e313b9210616a1ac Mon Sep 17 00:00:00 2001 From: John Wedgbury Date: Wed, 13 Dec 2023 13:38:07 +0000 Subject: [PATCH] Remove timeout on processing --- src/ZSTD.php | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/src/ZSTD.php b/src/ZSTD.php index e60575b..e82e2cc 100644 --- a/src/ZSTD.php +++ b/src/ZSTD.php @@ -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(); @@ -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();