mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:49:14 +08:00
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:
parent
3b1a46ff37
commit
ea5d303a07
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user