summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielsdeleo <dan@chef.io>2015-11-03 13:23:58 -0800
committerdanielsdeleo <dan@chef.io>2015-11-04 08:34:00 -0800
commit3f2f1ab4a46cf2f93cd0056ee54f66587dbfe5c3 (patch)
tree605f9ccc3219ef68b76a094a1fad809cd887d428
parentc295a56484743c73310a12ad2cc2417f9f34aa17 (diff)
downloadchef-3f2f1ab4a46cf2f93cd0056ee54f66587dbfe5c3.tar.gz
Add connection resets to HTTP retry cases
-rw-r--r--lib/chef/http.rb2
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)