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.
This commit is contained in:
jbrw 2022-08-23 09:38:10 -04:00 committed by GitHub
parent 3b1a46ff37
commit ea5d303a07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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