mirror of
https://github.com/ntop/n2n.git
synced 2024-09-20 00:51:10 +02:00
Reduce the registration timeout to keep the connection open
This commit is contained in:
parent
5feb00bcf8
commit
5f4dfdc683
|
@ -32,7 +32,7 @@
|
||||||
#define REGISTER_SUPER_INTERVAL_DFL 60 /* sec */
|
#define REGISTER_SUPER_INTERVAL_DFL 60 /* sec */
|
||||||
#endif /* #if defined(DEBUG) */
|
#endif /* #if defined(DEBUG) */
|
||||||
|
|
||||||
#define REGISTER_SUPER_INTERVAL_MIN 20 /* sec */
|
#define REGISTER_SUPER_INTERVAL_MIN 5 /* sec */
|
||||||
#define REGISTER_SUPER_INTERVAL_MAX 3600 /* sec */
|
#define REGISTER_SUPER_INTERVAL_MAX 3600 /* sec */
|
||||||
|
|
||||||
#define IFACE_UPDATE_INTERVAL (30) /* sec. How long it usually takes to get an IP lease. */
|
#define IFACE_UPDATE_INTERVAL (30) /* sec. How long it usually takes to get an IP lease. */
|
||||||
|
|
3
sn.c
3
sn.c
|
@ -112,7 +112,8 @@ static void deinit_sn(n2n_sn_t * sss)
|
||||||
* should not allow registrations to continue beyond the shutdown point.
|
* should not allow registrations to continue beyond the shutdown point.
|
||||||
*/
|
*/
|
||||||
static uint16_t reg_lifetime(n2n_sn_t * sss) {
|
static uint16_t reg_lifetime(n2n_sn_t * sss) {
|
||||||
return 120;
|
/* NOTE: UDP firewalls usually have a 30 seconds timeout */
|
||||||
|
return 15;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user