lib/aerospike/node.rb
def get_connection(timeout)
      loop do
        conn = @connections.poll
        if conn.connected?
          conn.timeout = timeout.to_f
          return conn
        end
      end
    end
def get_connection(timeout)
      loop do
        conn = @connections.poll
        if conn.connected?
          conn.timeout = timeout.to_f
          return conn
        end
      end
    end
Initialize server node with connection parameters.
 Get a connection to the node. If no cached connection is not available,
 a new connection will be created