diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-01-27 15:22:01 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-01-27 15:22:01 +0000 |
commit | ec72b3f03d16e6ca84a9035b308048fe5abe3cda (patch) | |
tree | 5e800f1ad1dae02c059338f135d2552acc26bd41 /src/libserver | |
parent | d10ece3bad807614f1d0c728d95af0205ef811fe (diff) | |
download | rspamd-ec72b3f03d16e6ca84a9035b308048fe5abe3cda.tar.gz rspamd-ec72b3f03d16e6ca84a9035b308048fe5abe3cda.zip |
[Minor] Allocate larger config static pool
Diffstat (limited to 'src/libserver')
-rw-r--r-- | src/libserver/cfg_utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index e14495ded..d3e27755e 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -117,7 +117,8 @@ rspamd_config_new (void) struct rspamd_config *cfg; cfg = g_malloc0 (sizeof (*cfg)); - cfg->cfg_pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), "cfg"); + /* Allocate larger pool for cfg */ + cfg->cfg_pool = rspamd_mempool_new (8 * 1024 * 1024, "cfg"); cfg->dns_timeout = 1000; cfg->dns_retransmits = 5; /* After 20 errors do throttling for 10 seconds */ |