From a42ad4141a2e576bc77b146fe0b28c9f6ea0b9e2 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 5 Oct 2018 10:19:53 +1300 Subject: [PATCH] Fix #120 increase timeout values to prevent ci failures. --- classes/local/outagelib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/local/outagelib.php b/classes/local/outagelib.php index e579523..8bd0fa8 100644 --- a/classes/local/outagelib.php +++ b/classes/local/outagelib.php @@ -58,8 +58,8 @@ class outagelib { curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); - curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 1); // It is localhost, time to connect is enough. - curl_setopt($curl, CURLOPT_TIMEOUT, 5); // It is localhost, time to fetch index is enough. + curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5); // It is localhost, time to connect is enough. + curl_setopt($curl, CURLOPT_TIMEOUT, 10); // It is localhost, time to fetch index is enough. $contents = curl_exec($curl); $mime = curl_getinfo($curl, CURLINFO_CONTENT_TYPE); curl_close($curl);