diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-22 12:44:27 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-22 12:44:27 +0100 |
commit | 13bac0b96a129be5195b72a4100d6cd24a93d23e (patch) | |
tree | 528612a78d31e73d49e060ee32e5d4c9d458e10d /src | |
parent | 094cad0a00d3fc18983093473be14a241d8b0e49 (diff) | |
download | rspamd-13bac0b96a129be5195b72a4100d6cd24a93d23e.tar.gz rspamd-13bac0b96a129be5195b72a4100d6cd24a93d23e.zip |
[Fix] Reduce maps aggressiveness
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/cfg_utils.c | 2 | ||||
-rw-r--r-- | src/libutil/map.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index 982415fdb..2791c28d4 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -35,7 +35,7 @@ #define DEFAULT_RLIMIT_NOFILE 2048 #define DEFAULT_RLIMIT_MAXCORE 0 -#define DEFAULT_MAP_TIMEOUT 10 +#define DEFAULT_MAP_TIMEOUT 60.0 * 5 #define DEFAULT_MIN_WORD 4 #define DEFAULT_MAX_WORD 40 #define DEFAULT_WORDS_DECAY 200 diff --git a/src/libutil/map.c b/src/libutil/map.c index aefd8eb08..b8d04dc5d 100644 --- a/src/libutil/map.c +++ b/src/libutil/map.c @@ -859,7 +859,7 @@ rspamd_map_schedule_periodic (struct rspamd_map *map, timeout = map->poll_timeout * error_mult; } else if (locked) { - timeout = lock_mult; + timeout = map->poll_timeout * lock_mult; } cbd = g_slice_alloc0 (sizeof (*cbd)); |