Bug #6001 » net.http.retry_errors.patch
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?
|