From f0c01ed01eae2c0e300fd5f08eac018a32fe27e7 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 24 Sep 2005 17:41:53 +0000 Subject: Raise RPC timeout to 240 to avoid errors when syncing against really old slow gear (aka soekris 4501). --- etc/inc/filter.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'etc/inc/filter.inc') diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 5afb70c..9cf5a62 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -2355,7 +2355,7 @@ function carp_sync_xml($url, $password, $section, $section_xml, $method = 'pfsen log_error("begin synchronize XML configuration data to $url on port $port"); $cli = new XML_RPC_Client('/xmlrpc.php', $url, $port); $cli->setCredentials($config['system']['username'], $password); - $resp = $cli->send($msg); + $resp = $cli->send($msg, "240"); if(!$resp) { log_error("A communication error occured while syncing configuration data with {$url}:{$port} - " . $cli->errstr); file_notice("sync_settings", "A communication error occured while syncing configuration data with {$url}:{$port} - " . $cli->errstr, "Settings Sync", ""); @@ -2436,10 +2436,10 @@ function carp_sync_client() { $cli = new XML_RPC_Client('/xmlrpc.php', $synchronizetoip, $port); $msg = new XML_RPC_Message('pfsense.filter_configure', array(new XML_RPC_Value($carp['password'], 'string'))); $cli->setCredentials($config['system']['username'], $carp['password']); - $cli->send($msg); + $cli->send($msg, "240"); /* signal a carp reload */ $msg = new XML_RPC_Message('pfsense.interfaces_carp_configure_xmlrpc', array(new XML_RPC_Value($carp['password'], 'string'))); - $cli->send($msg); + $cli->send($msg, "240"); } } } -- cgit v1.1