summaryrefslogtreecommitdiff
path: root/bin/custodian-enqueue
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
commit6e7b07ad59c4596d6bb8189cd5fc735cbf652fa5 (patch)
tree9b0f645930e0051e90a50a125678e3933dc2d9d3 /bin/custodian-enqueue
parent3042de647ce9fdb3905fa663570122b5e2c10f1c (diff)
Use our global-timeout value when pulling macro definitions.
Diffstat (limited to 'bin/custodian-enqueue')
-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