Add PERSISTENT_TIMEOUT option (#11756)

Add environment variable to so `persistent_timeout` option of puma can be changed.
lolsob-rspec
Yamagishi Kazutoshi 2019-09-05 03:44:08 +09:00 committed by Eugen Rochko
parent 17bb2b5e06
commit 4f9f1c6a98
1 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,5 @@
persistent_timeout ENV.fetch('PERSISTENT_TIMEOUT') { 20 }.to_i
threads_count = ENV.fetch('MAX_THREADS') { 5 }.to_i threads_count = ENV.fetch('MAX_THREADS') { 5 }.to_i
threads threads_count, threads_count threads threads_count, threads_count