Class: HTTPkit::Server::TimeoutsHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/httpkit/server/timeouts_handler.rb

Overview

See Also:

  • EM.heartbeat_interval

Instance Method Summary collapse

Instance Method Details

#setup(config, _, connection) ⇒ Object


6
7
8
9
10
11
# File 'lib/httpkit/server/timeouts_handler.rb', line 6

def setup(config, _, connection)
  @config = config
  @connection = connection

  @connection.comm_inactivity_timeout = @config[:timeout] ||= 2.0
end