From ab02bb547ff6b75c24bce2a8cb7cfffd5518ac11 Mon Sep 17 00:00:00 2001 From: Colin Smith Date: Sun, 12 Jun 2005 19:40:12 +0000 Subject: [PATCH] Add 10 second timeout to get_pkg_info. This may fail in interesting ways if it times out. --- etc/inc/pkg-utils.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index caeda96f1c..ca1104cff2 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -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); }