diff options
Diffstat (limited to 'lib/rainbows/event_machine/client.rb')
-rw-r--r-- | lib/rainbows/event_machine/client.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rainbows/event_machine/client.rb b/lib/rainbows/event_machine/client.rb index 8c2549d..e56931f 100644 --- a/lib/rainbows/event_machine/client.rb +++ b/lib/rainbows/event_machine/client.rb @@ -2,6 +2,7 @@ # :enddoc: class Rainbows::EventMachine::Client < EM::Connection include Rainbows::EvCore + Rainbows.config!(self, :keepalive_timeout) def initialize(io) @_io = io @@ -87,7 +88,7 @@ class Rainbows::EventMachine::Client < EM::Connection if alive if @deferred.nil? if @buf.empty? - set_comm_inactivity_timeout(Rainbows.keepalive_timeout) + set_comm_inactivity_timeout(KEEPALIVE_TIMEOUT) else EM.next_tick { receive_data(nil) } end |