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.
This commit is contained in:
Martin Pulec
2021-05-07 14:39:40 +02:00
parent fda837048d
commit 4d259fa15d

View File

@@ -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 {