]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: cache/htx: Add the HTX support into the cache
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 7 Dec 2018 11:21:11 +0000 (12:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 11 Dec 2018 16:09:31 +0000 (17:09 +0100)
commit54a8d5a4a0395f1eb4f0c6ae13ceb00c6f4cd89a
treed47d5ce27136555f190990d9a6cd31de4fc33921
parent67658c9c9aa3f8e3b5c383da00018cd5220cb967
MEDIUM: cache/htx: Add the HTX support into the cache

The cache is now able to store and resend HTX messages. When an HTX message is
stored in the cache, the headers are prefixed with their block's info (an
uint32_t), containing its type and its length. Data, on their side, are stored
without any prefix. Only the value is copied in the cache. 2 fields have been
added in the structure cache_entry, hdrs_len and data_len, to known the size, in
the cache, of the headers part and the data part. If the message is chunked, the
trailers are also copied, the same way as data. When the HTX message is
recreated in the cache applet, the trailers size is known removing the headers
length and the data lenght from the total object length.
include/types/applet.h
src/cache.c
src/proto_htx.c