From: Yamagishi Kazutoshi Date: Wed, 4 Sep 2019 18:44:08 +0000 (+0900) Subject: Add PERSISTENT_TIMEOUT option (#11756) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=bdca8da8ebb133f9f2a01cd4881a2fc3f6852274;p=mastodon.git Add PERSISTENT_TIMEOUT option (#11756) Add environment variable to so `persistent_timeout` option of puma can be changed. --- diff --git a/config/puma.rb b/config/puma.rb index 6a96867d5..224be7903 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