# File lib/hiredis/ruby/connection.rb, line 30
        def _connect(host, port, timeout)
          sock = nil

          begin
            Timeout.timeout(timeout) do
              sock = TCPSocket.new(host, port)
            end
          rescue SocketError => se
            raise se.message
          rescue Timeout::Error
            raise Errno::ETIMEDOUT
          end

          sock
        end