aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_rcl.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-07-04 08:33:00 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-07-04 08:33:00 +0100
commitdde53bb20d667ef89093fb9fb5819c4b1a2a519e (patch)
tree47453e0dcdd040f2ed785f2f498512df37015065 /src/libserver/cfg_rcl.c
parent5dfec9ae61f33003aab026b7147b45beede923b5 (diff)
downloadrspamd-dde53bb20d667ef89093fb9fb5819c4b1a2a519e.tar.gz
rspamd-dde53bb20d667ef89093fb9fb5819c4b1a2a519e.zip
[Minor] Add configuration knobs for sessions cache
Diffstat (limited to 'src/libserver/cfg_rcl.c')
-rw-r--r--src/libserver/cfg_rcl.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c
index bf3a1779f..f4ca6ded7 100644
--- a/src/libserver/cfg_rcl.c
+++ b/src/libserver/cfg_rcl.c
@@ -2199,6 +2199,18 @@ rspamd_rcl_config_init (struct rspamd_config *cfg)
G_STRUCT_OFFSET (struct rspamd_config, default_max_shots),
0,
"Maximum number of hits per a single symbol (default: 100)");
+ rspamd_rcl_add_default_handler (sub,
+ "sessions_cache",
+ rspamd_rcl_parse_struct_boolean,
+ G_STRUCT_OFFSET (struct rspamd_config, enable_sessions_cache),
+ 0,
+ "Enable sessions cache to debug dangling sessions");
+ rspamd_rcl_add_default_handler (sub,
+ "max_session_cache",
+ rspamd_rcl_parse_struct_integer,
+ G_STRUCT_OFFSET (struct rspamd_config, max_session_cache),
+ 0,
+ "Maximum number of sessions in cache before warning (default: 100)");
/* Neighbours configuration */
rspamd_rcl_add_section_doc (&sub->subsections, "neighbours", "name",