diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-30 15:22:36 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-30 15:26:43 +0100 |
commit | 6d82717e74e4ef03739268ed6f260587be7af66b (patch) | |
tree | 1deb0d72e3301cc17cecde88ea632eafa47a4bbe /src/libutil/http_private.h | |
parent | d050480bde96cb9d55c892a8aa1c7957ac533344 (diff) | |
download | rspamd-6d82717e74e4ef03739268ed6f260587be7af66b.tar.gz rspamd-6d82717e74e4ef03739268ed6f260587be7af66b.zip |
[Feature] Implement zero-copy mode for HTTP reading
Diffstat (limited to 'src/libutil/http_private.h')
-rw-r--r-- | src/libutil/http_private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/http_private.h b/src/libutil/http_private.h index 7131e0bd1..4cb2851d7 100644 --- a/src/libutil/http_private.h +++ b/src/libutil/http_private.h @@ -46,6 +46,8 @@ struct rspamd_http_message { const gchar *begin; /* Data len */ gsize len; + /* Allocated len */ + gsize allocated_len; /* Data buffer (used to write data inside) */ gchar *str; |