From 0ced170567768ca535fb1de65fb3bb908be38640 Mon Sep 17 00:00:00 2001 From: Simon L Date: Thu, 9 Mar 2023 13:15:35 +0100 Subject: [PATCH] increase imaginary timeouts as for big files the processing could take very long Signed-off-by: Simon L --- lib/private/Preview/Imaginary.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/private/Preview/Imaginary.php b/lib/private/Preview/Imaginary.php index ca46383e58b01..b26c2505a59ac 100644 --- a/lib/private/Preview/Imaginary.php +++ b/lib/private/Preview/Imaginary.php @@ -143,6 +143,8 @@ public function getCroppedThumbnail(File $file, int $maxX, int $maxY, bool $crop 'content-type' => $file->getMimeType(), 'body' => $stream, 'nextcloud' => ['allow_local_address' => true], + 'timeout' => 120, + 'connect_timeout' => 3, ]); } catch (\Exception $e) { $this->logger->error('Imaginary preview generation failed: ' . $e->getMessage(), [