about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-05-22 15:00:33 +0200
committerGitHub <noreply@github.com>2021-05-22 15:00:33 +0200
commit12f8f39e257e1b628d005d67dc0080d287a873eb (patch)
tree6f3509373aa6d15a9b7c9f6dae931107c5071015
parent1db28332b5bd082afc5b6e501f60b975a92f812d (diff)
Fix media proxy RedisLocks auto-releasing too fast (#16291)
Follow-up to #16276
-rw-r--r--app/controllers/media_proxy_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/media_proxy_controller.rb b/app/controllers/media_proxy_controller.rb
index 1b610318d..5596e92d1 100644
--- a/app/controllers/media_proxy_controller.rb
+++ b/app/controllers/media_proxy_controller.rb
@@ -45,7 +45,7 @@ class MediaProxyController < ApplicationController
   end
 
   def lock_options
-    { redis: Redis.current, key: "media_download:#{params[:id]}" }
+    { redis: Redis.current, key: "media_download:#{params[:id]}", autorelease: 15.minutes.seconds }
   end
 
   def reject_media?