Module: Moped::Sockets::Connectable::ClassMethods
- Defined in:
 - lib/webmate/support/em_mongoid.rb
 
Instance Method Summary collapse
Instance Method Details
#connect(host, port, timeout) ⇒ Object
      22 23 24 25 26 27 28 29  | 
    
      # File 'lib/webmate/support/em_mongoid.rb', line 22 def connect(host, port, timeout) TimeoutHandler.timeout(timeout) do sock = new(host, port) #sock.set_encoding('binary') #sock.setsockopt(Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1) sock end end  |