summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-14 15:58:52 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-14 15:58:52 +0000
commite880c1890738793d176c6d07e35666116fc34514 (patch)
tree9b0f645930e0051e90a50a125678e3933dc2d9d3
parent2387a42203794f7957d504868b8ccee4c0f35c52 (diff)
Use our global-timeout value when pulling macro definitions.
-rwxr-xr-xbin/custodian-enqueue4
1 files changed, 2 insertions, 2 deletions
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