diff options
-rwxr-xr-x | bin/custodian-enqueue | 4 |
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 |