diff --git a/examples/config.rb b/examples/config.rb index c86e0939..e509d684 100644 --- a/examples/config.rb +++ b/examples/config.rb @@ -138,6 +138,9 @@ # # tag 'app name' +# Change the default timeout of workers +# +# worker_timeout 60 # === Puma control rack application === diff --git a/lib/puma/configuration.rb b/lib/puma/configuration.rb index 646deae5..1171c8f6 100644 --- a/lib/puma/configuration.rb +++ b/lib/puma/configuration.rb @@ -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