Browse Source

[Fix] Reduce maps aggressiveness

tags/1.6.0
Vsevolod Stakhov 7 years ago
parent
commit
13bac0b96a
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      src/libserver/cfg_utils.c
  2. 1
    1
      src/libutil/map.c

+ 1
- 1
src/libserver/cfg_utils.c View File

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

+ 1
- 1
src/libutil/map.c View File

@@ -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));

Loading…
Cancel
Save