Skip to content

A platform for community discussion. Free, open, simple.

DEV: Increase timeout when pulling hotlinked image (#18036)

jbrwea5d303a07cc
diff --git a/app/jobs/regular/pull_hotlinked_images.rb b/app/jobs/regular/pull_hotlinked_images.rb
index f29874e05af..57aaad6f9d8 100644
--- a/app/jobs/regular/pull_hotlinked_images.rb
+++ b/app/jobs/regular/pull_hotlinked_images.rb
@@ -86,7 +86,8 @@ module Jobs
max_file_size: @max_size,
retain_on_max_file_size_exceeded: true,
tmp_file_name: "discourse-hotlinked",
- follow_redirect: true
+ follow_redirect: true,
+ read_timeout: 15
)
rescue => e
if SiteSetting.verbose_upload_logging