diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-10 12:27:47 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-10 12:28:08 +0000 |
commit | e80ac859a73deaf75da180e2446d62134b7f36ab (patch) | |
tree | cb1e8e1ff3cd54cbf23b123188c982d8e2cc5a29 /src/libserver/cfg_rcl.c | |
parent | a32d867f9f22bd5da802e1d808d67a1b99aac075 (diff) | |
download | rspamd-e80ac859a73deaf75da180e2446d62134b7f36ab.tar.gz rspamd-e80ac859a73deaf75da180e2446d62134b7f36ab.zip |
[Minor] Allow to configure images DCT cache size
Diffstat (limited to 'src/libserver/cfg_rcl.c')
-rw-r--r-- | src/libserver/cfg_rcl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index 42e406231..b8423bb5d 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -2023,6 +2023,12 @@ rspamd_rcl_config_init (struct rspamd_config *cfg) RSPAMD_CL_FLAG_INT_SIZE, "Maximum size of the picture to be normalized (1Mb by default)"); rspamd_rcl_add_default_handler (sub, + "images_cache", + rspamd_rcl_parse_struct_integer, + G_STRUCT_OFFSET (struct rspamd_config, max_pic_size), + RSPAMD_CL_FLAG_INT_SIZE, + "Size of DCT data cache for images (256 elements by default)"); + rspamd_rcl_add_default_handler (sub, "zstd_input_dictionary", rspamd_rcl_parse_struct_string, G_STRUCT_OFFSET (struct rspamd_config, zstd_input_dictionary), |