]> cat aescling's git repositories - mastodon.git/commitdiff
Add PERSISTENT_TIMEOUT option (#11756)
authorYamagishi Kazutoshi <ykzts@desire.sh>
Wed, 4 Sep 2019 18:44:08 +0000 (03:44 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 4 Sep 2019 18:44:08 +0000 (20:44 +0200)
Add environment variable to so `persistent_timeout` option of puma can be changed.

config/puma.rb

index 6a96867d54d27e04f2090bc4191131da39b8a76c..224be79036556e4fa1cc86f16ffc9b05169cce56 100644 (file)
@@ -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