Add 10 second timeout to get_pkg_info. This may fail in interesting ways if it times out.

This commit is contained in:
Colin Smith 2005-06-12 19:40:12 +00:00
parent dcd18c94bf
commit ab02bb547f

View File

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