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 ca46383e58b..b26c2505a59 100644 --- a/lib/private/Preview/Imaginary.php +++ b/lib/private/Preview/Imaginary.php @@ -143,6 +143,8 @@ class Imaginary extends ProviderV2 { '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(), [ -- 2.39.5