Commit 51dbd32d authored by Tiago's avatar Tiago
Browse files

add extra exceptions to the list of retriable errors and connection level errors

parent 4cb5a7fa
Loading
Loading
Loading
Loading
Loading
+5 −3
Changes for lib/httpx/connection.rb: 5 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -95,10 +95,10 @@ module HTTPX
        self.addresses = addresses
      end

      if @current_session && @current_selector
      return unless @current_session && @current_selector

      @current_session.pin(self, @current_selector)
    end
    end

    def peer
      @origin
@@ -798,8 +798,10 @@ module HTTPX
           Errno::ECONNRESET,
           Errno::EADDRNOTAVAIL,
           Errno::EHOSTUNREACH,
           Errno::EINVAL,
           Errno::ENETUNREACH,
           Errno::EHOSTDOWN,
           Errno::ENETDOWN,
           Errno::EINVAL,
           Errno::EPIPE,
           Errno::ENOENT,
           SocketError,
+1 −0
Changes for lib/httpx/plugins/retries.rb: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ module HTTPX
        Errno::ETIMEDOUT,
        ConnectionError,
        TLSError,
        Zlib::BufError,
        PingTimeoutError,
        Connection::HTTP2::GoawayError,
        Connection::HTTP2::PingError,