Skip to content

Commit

Permalink
Merge pull request #37148 from nextcloud/enh/noid/increase-imaginary-…
Browse files Browse the repository at this point in the history
…timeouts

increase imaginary timeouts as for big files the processing could take very long
  • Loading branch information
szaimen authored May 4, 2023
2 parents 5938808 + 0ced170 commit 527de8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/private/Preview/Imaginary.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(), [
Expand Down

0 comments on commit 527de8a

Please sign in to comment.