From ea5d303a07cc0ab6b5eeb56332e1c8259ba29ea6 Mon Sep 17 00:00:00 2001 From: jbrw Date: Tue, 23 Aug 2022 09:38:10 -0400 Subject: [PATCH] DEV: Increase timeout when pulling hotlinked image (#18036) We observed that some sites seemingly put us in a tarpit when we attempt to pull hotlinked images. Increasing the timeout will help in these situations. --- app/jobs/regular/pull_hotlinked_images.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/jobs/regular/pull_hotlinked_images.rb b/app/jobs/regular/pull_hotlinked_images.rb index f29874e05a..57aaad6f9d 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