lib/hatetepe/server/timeouts.rb in hatetepe-0.6.0.pre vs lib/hatetepe/server/timeouts.rb in hatetepe-0.6.0.pre.1

- old
+ new

@@ -1,17 +1,17 @@ # encoding: utf-8 module Hatetepe # @see EM.heartbeat_interval class Server::Timeouts - def initialize(config, server, connection) - @config, @server = config, server + def initialize(config, _, connection) + @config = config @connection = connection @config[:timeout] ||= 2.0 end - def post_init + def setup @connection.comm_inactivity_timeout = @config[:timeout] end end end