2008-10-01 Ramon Novoa <rnovoa@artica.es>
* extensions/update_manager/lib/libupdate_manager_client.php: Added a timeout to the XML-RPC client. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1125 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
38789d3bad
commit
b1bdfbb9dc
|
@ -1,3 +1,8 @@
|
||||||
|
2008-10-01 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
|
* extensions/update_manager/lib/libupdate_manager_client.php: Added a
|
||||||
|
timeout to the XML-RPC client.
|
||||||
|
|
||||||
2008-09-30 Evi Vanoost <vanooste@rcbi.rochester.edu>
|
2008-09-30 Evi Vanoost <vanooste@rcbi.rochester.edu>
|
||||||
|
|
||||||
* operation/reporting/reporting_xml.php: Reporting does now output XML
|
* operation/reporting/reporting_xml.php: Reporting does now output XML
|
||||||
|
|
|
@ -22,13 +22,14 @@ unset ($prev_level);
|
||||||
|
|
||||||
|
|
||||||
define ('XMLRPC_DEBUG', 0);
|
define ('XMLRPC_DEBUG', 0);
|
||||||
|
define ('XMLRPC_TIMEOUT', 5);
|
||||||
|
|
||||||
function um_xml_rpc_client_call ($server_host, $server_path, $server_port, $proxy, $proxy_port, $proxy_user, $proxy_pass, $function, $parameters) {
|
function um_xml_rpc_client_call ($server_host, $server_path, $server_port, $proxy, $proxy_port, $proxy_user, $proxy_pass, $function, $parameters) {
|
||||||
$msg = new XML_RPC_Message ($function, $parameters);
|
$msg = new XML_RPC_Message ($function, $parameters);
|
||||||
$client = new XML_RPC_Client ($server_path, $server_host, $server_port, $proxy, $proxy_port, $proxy_user, $proxy_pass);
|
$client = new XML_RPC_Client ($server_path, $server_host, $server_port, $proxy, $proxy_port, $proxy_user, $proxy_pass);
|
||||||
if (defined ('XMLRPC_DEBUG'))
|
if (defined ('XMLRPC_DEBUG'))
|
||||||
$client->setDebug (XMLRPC_DEBUG);
|
$client->setDebug (XMLRPC_DEBUG);
|
||||||
$result = $client->send ($msg);
|
$result = $client->send ($msg, XMLRPC_TIMEOUT);
|
||||||
|
|
||||||
if (! $result) {
|
if (! $result) {
|
||||||
trigger_error ('<strong>Open Update Manager</strong> Server comunication error. '.$client->errstr);
|
trigger_error ('<strong>Open Update Manager</strong> Server comunication error. '.$client->errstr);
|
||||||
|
|
Loading…
Reference in New Issue