From d3da332d007872a32b4f9ccd66370d3f9acd9458 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Tue, 4 May 2021 09:19:19 +0200 Subject: #718 Increase ogAgent probe timeout Otherwise, webconsole fails to fetch status of computers with ogAgent when there are too many (100 approx.). --- admin/WebConsole/principal/sondeo.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'admin/WebConsole') 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'])) { -- cgit v1.2.3-18-g5258