mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add 10 second timeout to get_pkg_info. This may fail in interesting ways if it times out.
This commit is contained in:
parent
dcd18c94bf
commit
ab02bb547f
@ -96,7 +96,7 @@ function get_pkg_info($pkgs = 'all', $info = 'all') {
|
||||
$params = array("pkg" => $pkgs, "info" => $info);
|
||||
$msg = new XML_RPC_Message('pfsense.get_pkgs', array(php_value_to_xmlrpc($params)));
|
||||
$cli = new XML_RPC_Client($g['versioncheckpath'], $g['versioncheckbaseurl']);
|
||||
$resp = $cli->send($msg);
|
||||
$resp = $cli->send($msg, 10);
|
||||
$raw_versions = $resp->value();
|
||||
return xmlrpc_value_to_php($raw_versions);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user