def handle_not_responding(not_responding, type, request_uuid, expires_at, attempts)
      case (interval = retry_interval(expires_at, attempts))
      when nil
        @stats["request failures"].update("#{type} - no result")
        self.state = :disconnected
        raise Exceptions::ConnectivityFailure.new(not_responding.message)
      when 0
        @stats["request failures"].update("#{type} - no result")
        self.state = :disconnected
        raise Exceptions::ConnectivityFailure.new(not_responding.message + " after #{attempts} attempts")
      else
        ErrorTracker.log(self, "Retrying #{type} request <#{request_uuid}> in #{interval} seconds " +
                               "in response to routing failure (#{BalancedHttpClient.exception_text(not_responding)})")
        wait(interval)
      end
      true
    end
def handle_not_responding(not_responding, type, request_uuid, expires_at, attempts)
      case (interval = retry_interval(expires_at, attempts))
      when nil
        @stats["request failures"].update("#{type} - no result")
        self.state = :disconnected
        raise Exceptions::ConnectivityFailure.new(not_responding.message)
      when 0
        @stats["request failures"].update("#{type} - no result")
        self.state = :disconnected
        raise Exceptions::ConnectivityFailure.new(not_responding.message + " after #{attempts} attempts")
      else
        ErrorTracker.log(self, "Retrying #{type} request <#{request_uuid}> in #{interval} seconds " +
                               "in response to routing failure (#{BalancedHttpClient.exception_text(not_responding)})")
        wait(interval)
      end
      true
    end
Handle not responding response by determining whether okay to retry
 If request is being retried, this function does not return until it is time to retry

 @param [BalancedHttpClient::NotResponding] not_responding exception
   indicating targeted server is too busy or out of service
 @param [String] type of request for use in logging
 @param [String] request_uuid originally created for this request
 @param [Time] expires_at time for request
 @param [Integer] attempts to make request

 @return [TrueClass] always true

 @raise [Exceptions::ConnectivityFailure] cannot connect to server, lost connection
   to it, or it is out of service or too busy to respond