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)
}
end_transport req, res
res
rescue EOFError, Errno::ECONNRESET => exception
rescue IOError, EOFError,
Errno::ECONNRESET, Errno::ECONNABORTED, Errno::ECONNRESET,
Errno::EPIPE, Errno::EINVAL,
OpenSSL::SSL::SSLError, Timeout::Error => exception
if count == 0 && IDEMPOTENT_METHODS_.include?(req.method)
count += 1
@socket.close if @socket and not @socket.closed?
(1-1/2)