Method: Puma::DSL#persistent_timeout

Defined in:
lib/puma/dsl.rb

#persistent_timeout(seconds) ⇒ Object

Define how long persistent connections can be idle before Puma closes them.

The default is 20 seconds.

Examples:

persistent_timeout 30

See Also:

  • Server.new


356
357
358
# File 'lib/puma/dsl.rb', line 356

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