From e880c1890738793d176c6d07e35666116fc34514 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 14 Nov 2012 15:58:52 +0000 Subject: Use our global-timeout value when pulling macro definitions. --- bin/custodian-enqueue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/custodian-enqueue') diff --git a/bin/custodian-enqueue b/bin/custodian-enqueue index 3a03db7..23121d3 100755 --- a/bin/custodian-enqueue +++ b/bin/custodian-enqueue @@ -134,8 +134,8 @@ class MonitorConfig uri_str = 'http://' + uri_str unless uri_str.match(/^http/) url = URI.parse(uri_str) http = Net::HTTP.new(url.host, url.port) - http.open_timeout = 3 - http.read_timeout = 3 + http.open_timeout = @timeout + http.read_timeout = @timeout if (url.scheme == "https") http.use_ssl = true -- cgit v1.2.1