From edd460a8faac9943909b9c829ec70a93c22e343f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Gomez?= Date: Thu, 17 Mar 2022 21:08:09 +0100 Subject: [PATCH] Set default recon_timer (and step) to 30s MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Waiting 2 minutes on the first disconnect is depressing. With this the maximum of 10min wait time is reached after 20 attempts instead of the current 5 attempts. Signed-off-by: Loïc Gomez --- bip.conf.5 | 2 +- samples/bip.conf | 2 +- src/defaults.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bip.conf.5 b/bip.conf.5 index 1f44856..a66240d 100644 --- a/bip.conf.5 +++ b/bip.conf.5 @@ -146,7 +146,7 @@ Defines the delay between each logfiles sync to the disk. Must be a non null positive integer. .TP -\fBreconn_timer\fP (default: \fB120\fP) +\fBreconn_timer\fP (default: \fB30\fP) Defines the initial delay (in seconds) before a reconnection attempt. The delay increases with the number of attempts: delay = reconn_timer * number of attempts diff --git a/samples/bip.conf b/samples/bip.conf index 37af202..ca00fcf 100644 --- a/samples/bip.conf +++ b/samples/bip.conf @@ -86,7 +86,7 @@ # Sets the initial delay (in seconds) before a reconnection attempt. # The delay increases with the number of attempts: # delay = reconn_timer * number of attempts -#reconn_timer = 120; +#reconn_timer = 30; # Network definition, a name and server info #network { diff --git a/src/defaults.h b/src/defaults.h index ce24078..851bd92 100644 --- a/src/defaults.h +++ b/src/defaults.h @@ -29,6 +29,6 @@ #define DEFAULT_LOG_LEVEL LOG_INFO #define DEFAULT_LOG_FORMAT "%u/%n/%Y-%m/%c.%d.log" #define DEFAULT_BIP_USE_NOTICE 0 -#define DEFAULT_RECONN_TIMER 120 +#define DEFAULT_RECONN_TIMER 30 #endif /* DEFAULTS_H */