Skip to content

Commit

Permalink
retry on socket errors as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jsierles2 committed Aug 6, 2010
1 parent f9a14cd commit 534ce77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/aws/s3/connection.rb
Expand Up @@ -53,7 +53,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, SocketError
@http = create_connection
attempts == 3 ? raise : (attempts += 1; retry)
end
Expand Down

0 comments on commit 534ce77

Please sign in to comment.