From 54045d5ce1057f7080c88d8740449ff8ae26dd43 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 cba0b79..d3a9702 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);