Incease timeout to prevent settings page throwing error (from time to time)

This commit is contained in:
Ilya Tregubov
2018-10-11 11:15:04 +11:00
parent a42ad4141a
commit f72a03aa5a

View File

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