summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-11-03 11:26:26 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2015-11-04 08:01:36 -0800
commit40db8612b99c177ea24b181cbb0bf849f4748601 (patch)
tree45e14dd6ef792e4dd5c3e25beb2df16da4140478
parent3b156079b3bd591404d484a28d7ce7712207914b (diff)
downloadchef-40db8612b99c177ea24b181cbb0bf849f4748601.tar.gz
add more verbose info/clarity to comment block
-rw-r--r--lib/chef/http.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/chef/http.rb b/lib/chef/http.rb
index bb28ce280b..8fa2569190 100644
--- a/lib/chef/http.rb
+++ b/lib/chef/http.rb
@@ -197,8 +197,9 @@ class Chef
def http_client(base_url=nil)
base_url ||= url
if chef_zero_uri?(base_url)
- # PERFORMANCE CRITICAL: *MUST* lazy require here otherwise we load up all of
- # chef-zero and webrick when we mostly never want to or have to
+ # PERFORMANCE CRITICAL: *MUST* lazy require here otherwise we load up webrick
+ # via chef-zero and that hits DNS (at *require* time) which may timeout,
+ # when for most knife/chef-client work we never need/want this loaded.
require 'chef/http/socketless_chef_zero_client'
SocketlessChefZeroClient.new(base_url)
else