Skip to content

Commit 527de8a

Browse files
authored
Merge pull request #37148 from nextcloud/enh/noid/increase-imaginary-timeouts
increase imaginary timeouts as for big files the processing could take very long
2 parents 5938808 + 0ced170 commit 527de8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/private/Preview/Imaginary.php

+2
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ public function getCroppedThumbnail(File $file, int $maxX, int $maxY, bool $crop
143143
'content-type' => $file->getMimeType(),
144144
'body' => $stream,
145145
'nextcloud' => ['allow_local_address' => true],
146+
'timeout' => 120,
147+
'connect_timeout' => 3,
146148
]);
147149
} catch (\Exception $e) {
148150
$this->logger->error('Imaginary preview generation failed: ' . $e->getMessage(), [

0 commit comments

Comments
 (0)