diff options
author | danielsdeleo <dan@chef.io> | 2015-11-03 13:23:58 -0800 |
---|---|---|
committer | danielsdeleo <dan@chef.io> | 2015-11-04 08:34:00 -0800 |
commit | 3f2f1ab4a46cf2f93cd0056ee54f66587dbfe5c3 (patch) | |
tree | 605f9ccc3219ef68b76a094a1fad809cd887d428 /lib/chef/http.rb | |
parent | c295a56484743c73310a12ad2cc2417f9f34aa17 (diff) | |
download | chef-3f2f1ab4a46cf2f93cd0056ee54f66587dbfe5c3.tar.gz |
Add connection resets to HTTP retry cases
Diffstat (limited to 'lib/chef/http.rb')
-rw-r--r-- | lib/chef/http.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/http.rb b/lib/chef/http.rb index c2bb58f88f..b874491c93 100644 --- a/lib/chef/http.rb +++ b/lib/chef/http.rb @@ -307,7 +307,7 @@ class Chef end return [response, request, return_value] end - rescue SocketError, Errno::ETIMEDOUT => e + rescue SocketError, Errno::ETIMEDOUT, Errno::ECONNRESET => e if http_retry_count - http_attempts + 1 > 0 Chef::Log.error("Error connecting to #{url}, retry #{http_attempts}/#{http_retry_count}") sleep(http_retry_delay) |