Increase timeout for cases when caches have been just purged #179.

This commit is contained in:
Mikhail Golenkov
2020-02-06 17:46:32 +11:00
parent 076321db60
commit 2af15f2136

View File

@@ -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);