lib/yt/http_request.rb
# Returns the list of server errors worth retrying the request once.
Returns the list of server errors worth retrying the request once.
Returns the list of server errors worth retrying the request once .
def server_errors
      [
        Errno::ECONNRESET, Errno::EHOSTUNREACH, Errno::ENETUNREACH,
        Errno::ETIMEDOUT, Net::HTTPServerError, Net::OpenTimeout,
        OpenSSL::SSL::SSLError, OpenSSL::SSL::SSLErrorWaitReadable, SocketError,
      ]
    end
def server_errors [ Errno :: ECONNRESET , Errno :: EHOSTUNREACH , Errno :: ENETUNREACH , Errno :: ETIMEDOUT , Net :: HTTPServerError , Net :: OpenTimeout , OpenSSL :: SSL :: SSLError , OpenSSL :: SSL :: SSLErrorWaitReadable , SocketError , ] end
Returns the list of server errors worth retrying the request once.
Returns the list of server errors worth retrying the request once .