From 2af15f2136dc4926157852c19629285b6a7b1dd8 Mon Sep 17 00:00:00 2001 From: Mikhail Golenkov Date: Thu, 6 Feb 2020 17:46:32 +1100 Subject: [PATCH] Increase timeout for cases when caches have been just purged #179. --- 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 cf8ebbd..8a8b496 100644 --- a/classes/local/outagelib.php +++ b/classes/local/outagelib.php @@ -64,7 +64,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, 15); // It is localhost, time to fetch index is enough. + curl_setopt($curl, CURLOPT_TIMEOUT, 60); $contents = curl_exec($curl); $mime = curl_getinfo($curl, CURLINFO_CONTENT_TYPE); curl_close($curl);