summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-24 17:41:53 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-24 17:41:53 +0000
commitf0c01ed01eae2c0e300fd5f08eac018a32fe27e7 (patch)
tree15181b2d48c665b62af4ef353cf9322d156ac262 /etc
parent5f53250f40bba2a40ba2390c88f440a07b05a9d5 (diff)
downloadpfsense-f0c01ed01eae2c0e300fd5f08eac018a32fe27e7.zip
pfsense-f0c01ed01eae2c0e300fd5f08eac018a32fe27e7.tar.gz
Raise RPC timeout to 240 to avoid errors when syncing against really old slow gear (aka soekris 4501).
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc6
1 files changed, 3 insertions, 3 deletions
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");
}
}
}
OpenPOWER on IntegriCloud