diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2017-07-20 10:28:57 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2017-07-20 10:28:57 -0700 |
commit | a8032bf0d99a869e5e8124fd55fa3aee2e03f546 (patch) | |
tree | 7432d23c22ac9669f7ca453a3c53fe41251e7359 /lib/chef/http.rb | |
parent | df6dd3768d5fcc99a348bd52d7e6ffeaa1c391db (diff) | |
download | chef-a8032bf0d99a869e5e8124fd55fa3aee2e03f546.tar.gz |
remove retry delays on protocol negotiationlcg/versioned-posts
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/http.rb')
-rw-r--r-- | lib/chef/http.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/chef/http.rb b/lib/chef/http.rb index f9845c2460..14dd8b93a5 100644 --- a/lib/chef/http.rb +++ b/lib/chef/http.rb @@ -157,7 +157,6 @@ class Chef response = e.response if response.kind_of?(Net::HTTPNotAcceptable) && version_retries - http_attempts > 0 Chef::Log.debug("Negotiating protocol version with #{url}, retry #{http_attempts}/#{version_retries}") - sleep(http_retry_delay) retry else raise @@ -197,7 +196,6 @@ class Chef response = e.response if response.kind_of?(Net::HTTPNotAcceptable) && version_retries - http_attempts > 0 Chef::Log.debug("Negotiating protocol version with #{url}, retry #{http_attempts}/#{version_retries}") - sleep(http_retry_delay) retry else raise @@ -254,7 +252,6 @@ class Chef response = e.response if response.kind_of?(Net::HTTPNotAcceptable) && version_retries - http_attempts > 0 Chef::Log.debug("Negotiating protocol version with #{url}, retry #{http_attempts}/#{version_retries}") - sleep(http_retry_delay) retry else raise |