diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2019-09-05 03:44:08 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-09-04 20:44:08 +0200 |
commit | bdca8da8ebb133f9f2a01cd4881a2fc3f6852274 (patch) | |
tree | 86785d0aa5b085c28e534a16c2101a5eb2762e3d | |
parent | 80f86f290f7d1aea4755fb521ef0cf30c02b82a2 (diff) |
Add PERSISTENT_TIMEOUT option (#11756)
Add environment variable to so `persistent_timeout` option of puma can be changed.
-rw-r--r-- | config/puma.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/puma.rb b/config/puma.rb index 6a96867d54d..224be790365 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 |