From 4d259fa15dfa7d236a4e099aa2b560230730dbb1 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Fri, 7 May 2021 14:39:40 +0200 Subject: [PATCH] NAT: increase preallocation time to 30 s If the realloc fails, next attempt is in 5 seconds which is the same as the preallocation time which may cause an interrupt. --- src/utils/nat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/nat.c b/src/utils/nat.c index a24c0f7ba..e881e45f0 100644 --- a/src/utils/nat.c +++ b/src/utils/nat.c @@ -60,7 +60,7 @@ #define DEFAULT_ALLOCATION_TIMEOUT_S 1800 #define MOD_NAME "[NAT] " -#define PREALLOCATE_S 5 ///< number of seconds that repeated allocation is performed before timeout +#define PREALLOCATE_S 30 ///< number of seconds that repeated allocation is performed before timeout struct ug_nat_traverse { enum traverse_t {