diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-30 11:44:53 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-30 11:44:53 +0100 |
commit | f58e36df4d8e262134dc145bb08757928fa774a9 (patch) | |
tree | 09457a0819aaa5072e7d4ca50fe9783a3600e999 /src/libutil/http.h | |
parent | 7d8e0702811eeaf4ca86c17b3c378be37c43b7eb (diff) | |
download | rspamd-f58e36df4d8e262134dc145bb08757928fa774a9.tar.gz rspamd-f58e36df4d8e262134dc145bb08757928fa774a9.zip |
[Feature] Allow limiting of the inbound message size
- Set default limit to 50MB
- Reply even in case of HTTP errors
Diffstat (limited to 'src/libutil/http.h')
-rw-r--r-- | src/libutil/http.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libutil/http.h b/src/libutil/http.h index 2755638db..8223feb17 100644 --- a/src/libutil/http.h +++ b/src/libutil/http.h @@ -386,6 +386,12 @@ gboolean rspamd_http_message_remove_header (struct rspamd_http_message *msg, void rspamd_http_message_free (struct rspamd_http_message *msg); /** + * Sets global maximum size for HTTP message being processed + * @param sz + */ +void rspamd_http_message_set_max_size (gsize sz); + +/** * Increase refcount for shared file (if any) to prevent early memory unlinking * @param msg */ |