Method: Puma::DSL#first_data_timeout

Defined in:
lib/puma/dsl.rb

#first_data_timeout(seconds) ⇒ Object

Define how long the tcp socket stays open, if no data has been received.

The default is 30 seconds.

Examples:

first_data_timeout 40

See Also:

  • Server.new


343
344
345
# File 'lib/puma/dsl.rb', line 343

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