From f72a03aa5af0e5fac52d409f4e884fe188424d96 Mon Sep 17 00:00:00 2001 From: Ilya Tregubov Date: Thu, 11 Oct 2018 11:15:04 +1100 Subject: [PATCH] Incease timeout to prevent settings page throwing error (from time to time) --- classes/local/outagelib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/local/outagelib.php b/classes/local/outagelib.php index 8bd0fa8..43edb6f 100644 --- a/classes/local/outagelib.php +++ b/classes/local/outagelib.php @@ -59,7 +59,7 @@ class outagelib { curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); 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. + curl_setopt($curl, CURLOPT_TIMEOUT, 15); // It is localhost, time to fetch index is enough. $contents = curl_exec($curl); $mime = curl_getinfo($curl, CURLINFO_CONTENT_TYPE); curl_close($curl);