]> source.dussan.org Git - nextcloud-server.git/commitdiff
increase imaginary timeouts as for big files the processing could take very long 38081/head
authorSimon L <szaimen@e.mail.de>
Thu, 9 Mar 2023 12:15:35 +0000 (13:15 +0100)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Thu, 4 May 2023 15:01:27 +0000 (15:01 +0000)
Signed-off-by: Simon L <szaimen@e.mail.de>
lib/private/Preview/Imaginary.php

index ca46383e58b01708a0dbc93bd96385f8b3a16872..b26c2505a59ac7226881e35b947337380305154f 100644 (file)
@@ -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(), [