Project

General

Profile

Bug #6001 ยป net.http.retry_errors.patch

Oops, fixed patch. - drbrain (Eric Hodel), 02/11/2012 09:57 AM

View differences:

lib/net/http.rb (working copy)
1356 1356
      }
1357 1357
      end_transport req, res
1358 1358
      res
1359
    rescue EOFError, Errno::ECONNRESET => exception
1359
    rescue IOError, EOFError,
1360
           Errno::ECONNRESET, Errno::ECONNABORTED, Errno::ECONNRESET,
1361
           Errno::EPIPE, Errno::EINVAL,
1362
           OpenSSL::SSL::SSLError, Timeout::Error => exception
1360 1363
      if count == 0 && IDEMPOTENT_METHODS_.include?(req.method)
1361 1364
        count += 1
1362 1365
        @socket.close if @socket and not @socket.closed?