class Redis::Connection::TCPSocket

def self.connect(host, port, timeout)

def self.connect(host, port, timeout)
  Timeout.timeout(timeout) do
    sock = new(host, port)
    sock
  end
rescue Timeout::Error
  raise TimeoutError
end