From a0068e17a9af0bae723b397ce5059ad3a42b24cc Mon Sep 17 00:00:00 2001 From: Ian Duggan Date: Wed, 24 Sep 2014 13:12:38 -0700 Subject: [PATCH] Add EHOSTUNREACH to list of errors to retry on. --- lib/aws/s3/connection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/aws/s3/connection.rb b/lib/aws/s3/connection.rb index dac8700..9aa7027 100644 --- a/lib/aws/s3/connection.rb +++ b/lib/aws/s3/connection.rb @@ -51,7 +51,7 @@ def request(verb, path, headers = {}, body = nil, attempts = 0, &block) else http.start(&requester) end - rescue Errno::EPIPE, Timeout::Error, Errno::EINVAL, EOFError, Errno::ECONNRESET + rescue Errno::EPIPE, Timeout::Error, Errno::EINVAL, EOFError, Errno::ECONNRESET, Errno::EHOSTUNREACH @http = create_connection attempts == 3 ? raise : (attempts += 1; retry) end