From: Eric Hodel Date: 2012-02-25T05:04:44+09:00 Subject: [ruby-core:42867] [ruby-trunk - Bug #6001] Retry idempotent HTTP requests for more errors Issue #6001 has been updated by Eric Hodel. File net.http.retry_errors.2.patch added =begin Please check this improved patch. The new patch separates open and connect errors from response read/write errors. This allows OpenSSL::SSL::SSLError to be rescued only when there is an error in the connection (from SSL_read or SSL_write) and not an error in the certificate verification or other permanent SSL issues. The new patch introduces Net::HTTP::OpenTimeout to separate a timeout for opening a connection from response read/write timeouts. The new patch ignores Errno::EINVAL and removes the duplicated Errno::ECONNRESET =end ---------------------------------------- Bug #6001: Retry idempotent HTTP requests for more errors https://bugs.ruby-lang.org/issues/6001 Author: Eric Hodel Status: Open Priority: Normal Assignee: Category: lib Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2012-02-11 trunk 34547) [x86_64-darwin11.2.0] The net-http-persistent gem implements #5790 / #5813 but for more error types: https://github.com/drbrain/net-http-persistent/blob/1b5f84d020/lib/net/http/persistent.rb#L811-813 These additional error types should be rescued by net/http and retried. -- http://bugs.ruby-lang.org/