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

allow changing of worker_timeout in config file

This commit is contained in:
Dominik Sander 2014-03-26 12:37:06 +01:00
parent fff90f33ba
commit 0ea7af5e2c
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