diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-11-03 11:26:26 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-11-04 08:01:36 -0800 |
commit | 40db8612b99c177ea24b181cbb0bf849f4748601 (patch) | |
tree | 45e14dd6ef792e4dd5c3e25beb2df16da4140478 /lib/chef/http.rb | |
parent | 3b156079b3bd591404d484a28d7ce7712207914b (diff) | |
download | chef-40db8612b99c177ea24b181cbb0bf849f4748601.tar.gz |
add more verbose info/clarity to comment block
Diffstat (limited to 'lib/chef/http.rb')
-rw-r--r-- | lib/chef/http.rb | 5 |
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 |