From 0d8329db53d022968ea619cb662b347a99a5ab27 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Fri, 13 Jun 2025 15:15:00 -0500 Subject: [PATCH] up the timeouts for redis --- environment.rb | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/environment.rb b/environment.rb index fd2eda39..86bce3e4 100644 --- a/environment.rb +++ b/environment.rb @@ -80,7 +80,12 @@ end if ENV['RACK_ENV'] == 'test' $redis = MockRedis.new else - $redis = Redis.new url: $config['redis_url'] + $redis = Redis.new( + url: $config['redis_url'], + read_timeout: 5.0, + write_timeout: 5.0, + connect_timeout: 5.0 + ) end $redis_cache = Redis::Namespace.new :cache, redis: $redis @@ -88,7 +93,12 @@ $redis_cache = Redis::Namespace.new :cache, redis: $redis if ENV['RACK_ENV'] == 'test' $redis_proxy = MockRedis.new else - $redis_proxy = Redis.new url: $config['redis_proxy'] + $redis_proxy = Redis.new( + url: $config['redis_proxy'], + read_timeout: 5.0, + write_timeout: 5.0, + connect_timeout: 5.0 + ) end # :nocov: