1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Merge pull request #506 from FlavourSys/config_worker_timeout

allow changing of worker_timeout in config file
This commit is contained in:
Evan Phoenix 2014-04-12 13:04:46 -07:00
commit f59f8d660f
2 changed files with 8 additions and 0 deletions

View file

@ -138,6 +138,9 @@
#
# tag 'app name'
# Change the default timeout of workers
#
# worker_timeout 60
# === Puma control rack application ===

View file

@ -367,6 +367,11 @@ module Puma
def tag(string)
@options[:tag] = string
end
# *Cluster mode only* Set the timeout for workers
def worker_timeout(timeout)
@options[:worker_timeout] = timeout
end
end
end
end