From bdca8da8ebb133f9f2a01cd4881a2fc3f6852274 Mon Sep 17 00:00:00 2001
From: Yamagishi Kazutoshi <ykzts@desire.sh>
Date: Thu, 5 Sep 2019 03:44:08 +0900
Subject: [PATCH] Add PERSISTENT_TIMEOUT option (#11756)

Add environment variable to so `persistent_timeout` option of puma can be changed.
---
 config/puma.rb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/config/puma.rb b/config/puma.rb
index 6a96867d54..224be79036 100644
--- a/config/puma.rb
+++ b/config/puma.rb
@@ -1,3 +1,5 @@
+persistent_timeout ENV.fetch('PERSISTENT_TIMEOUT') { 20 }.to_i
+
 threads_count = ENV.fetch('MAX_THREADS') { 5 }.to_i
 threads threads_count, threads_count
 
-- 
GitLab