From: Eric Hodel Date: 2012-02-24T10:39:44+09:00 Subject: [ruby-core:42850] [ruby-trunk - Bug #6001] Retry idempotent HTTP requests for more errors Issue #6001 has been updated by Eric Hodel. I think Timeout::Error is OK since Errno::ECONNRESET or Errno::ECONNABORTED may race with your timeout setting depending upon network behavior. OpenSSL::SSL::SSLError may be raised due to a temporary issue when reading or writing and it is not possible to distinguish between temporary and permanent SSLErrors, so I think retrying is OK. I agree that EINVAL should be removed. ---------------------------------------- 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/