aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-14 00:18:06 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-14 00:18:06 +0000
commit8af7449387c2eacbab5fcfe53edfef3f5a9e3fb1 (patch)
tree2d758507aa806a820b8b89d27f2f738bf614d66c
parent882caacd1bf76a6213bb0828d70e505a88c6a29e (diff)
downloadpfsense-packages-8af7449387c2eacbab5fcfe53edfef3f5a9e3fb1.tar.gz
pfsense-packages-8af7449387c2eacbab5fcfe53edfef3f5a9e3fb1.tar.bz2
pfsense-packages-8af7449387c2eacbab5fcfe53edfef3f5a9e3fb1.zip
Timeout after 250 seconds during xmlrpc sync
-rw-r--r--packages/tinydns/tinydns.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/tinydns/tinydns.inc b/packages/tinydns/tinydns.inc
index 3fd5279c..05a76290 100644
--- a/packages/tinydns/tinydns.inc
+++ b/packages/tinydns/tinydns.inc
@@ -370,7 +370,7 @@ function tinydns_do_xmlrpc_sync($sync_to_ip, $password) {
if(!$sync_to_ip)
return;
- log_error("[tinydns] tinydns_xmlrpc_sync.php is starting to {$sync_to_ip}.");
+
$xmlrpc_sync_neighbor = $sync_to_ip;
if($config['system']['webgui']['protocol'] != "") {
$synchronizetoip = $config['system']['webgui']['protocol'];
@@ -405,14 +405,14 @@ function tinydns_do_xmlrpc_sync($sync_to_ip, $password) {
$method = 'pfsense.merge_config_section';
/* Sync! */
- log_error("Beginning tinydns XMLRPC sync to {$url}:{$port}.");
+ log_error("Beginning TinyDNS XMLRPC sync to {$url}:{$port}.");
$msg = new XML_RPC_Message($method, $params);
$cli = new XML_RPC_Client('/xmlrpc.php', $url, $port);
$cli->setCredentials('admin', $password);
if($g['debug'])
$cli->setDebug(1);
- /* send our XMLRPC message and timeout after 240 seconds */
- $resp = $cli->send($msg, "999");
+ /* send our XMLRPC message and timeout after 250 seconds */
+ $resp = $cli->send($msg, "250");
if(!$resp) {
$error = "A communications error occured while attempting tinydns XMLRPC sync with {$url}:{$port}.";
log_error($error);