Explorar o código

Add PERSISTENT_TIMEOUT option (#11756)

Add environment variable to so `persistent_timeout` option of puma can be changed.
Yamagishi Kazutoshi %!s(int64=4) %!d(string=hai) anos
pai
achega
bdca8da8eb
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      config/puma.rb

+ 2 - 0
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