From 40db8612b99c177ea24b181cbb0bf849f4748601 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Tue, 3 Nov 2015 11:26:26 -0800 Subject: add more verbose info/clarity to comment block --- lib/chef/http.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/chef/http.rb') 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 -- cgit v1.2.1