Method: Puma::DSL#idle_timeout

Defined in:
lib/puma/dsl.rb

#idle_timeout(seconds) ⇒ Object

If a new request is not received within this number of seconds, begin shutting down.

The default is nil.

Examples:

idle_timeout 60

See Also:

  • Server.new


372
373
374
# File 'lib/puma/dsl.rb', line 372

def idle_timeout(seconds)
  @options[:idle_timeout] = Integer(seconds)
end