diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2021-05-04 09:19:19 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-05-10 10:33:10 +0200 |
commit | d3da332d007872a32b4f9ccd66370d3f9acd9458 (patch) | |
tree | 10dfbcb442a1d2e0aba95181de7bf6b1a11b081e /admin/WebConsole/principal/sondeo.php | |
parent | a8c0ce02da5ce003150aa75d18f9360f29650581 (diff) |
#718 Increase ogAgent probe timeout
Otherwise, webconsole fails to fetch status of computers with ogAgent
when there are too many (100 approx.).
Diffstat (limited to 'admin/WebConsole/principal/sondeo.php')
-rw-r--r-- | admin/WebConsole/principal/sondeo.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/admin/WebConsole/principal/sondeo.php b/admin/WebConsole/principal/sondeo.php index 6cb76baa..7cc87512 100644 --- a/admin/WebConsole/principal/sondeo.php +++ b/admin/WebConsole/principal/sondeo.php @@ -56,7 +56,10 @@ $urls[$ip] = "https://$ip:8000/opengnsys/status"; } // Launch concurrent requests. - $responses = multiRequest($urls); + $options = array(CURLOPT_SSL_VERIFYHOST => false, + CURLOPT_SSL_VERIFYPEER => false, + CURLOPT_TIMEOUT_MS => 1000); + $responses = multiRequest($urls, $options); // Process responses array (IP as array index). foreach ($responses as $ip => $resp) { if (isset($resp['data'])) { |