From 49bdb687c3962e3acf15f6884c0bb4ced9dfd4bc 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 7472994..cba0b79 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);