Sha256: 3f5666dcb49592c0b928da6e95265ed785a7a471df9d22c5064b044647dd5a42

Contents?: true

Size: 441 Bytes

Versions: 1

Compression:

Stored size: 441 Bytes

Contents

# encoding: utf-8

module Hatetepe
  # @see EM.heartbeat_interval
  class Client::Timeouts
    def initialize(config, _, connection)
      @config = config
      @connection = connection

      @config[:timeout]         ||= 2.0
      @config[:connect_timeout] ||= 2.0
    end

    def setup
      @connection.comm_inactivity_timeout = @config[:timeout]
      @connection.pending_connect_timeout = @config[:connect_timeout]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hatetepe-0.6.0.pre.1 lib/hatetepe/client/timeouts.rb