summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2023-03-09 13:15:35 +0100
committerSimon L <szaimen@e.mail.de>2023-03-09 13:15:35 +0100
commit0ced170567768ca535fb1de65fb3bb908be38640 (patch)
tree5db0898ab9a19c93658310fa873795b9394c2bf7 /lib
parent691aa8d0257e9361bbc5a64b09cd634435dbd40a (diff)
downloadnextcloud-server-0ced170567768ca535fb1de65fb3bb908be38640.tar.gz
nextcloud-server-0ced170567768ca535fb1de65fb3bb908be38640.zip
increase imaginary timeouts as for big files the processing could take very long
Signed-off-by: Simon L <szaimen@e.mail.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Preview/Imaginary.php2
1 files changed, 2 insertions, 0 deletions
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(), [