]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: cache/htx: Always store info about HTX blocks in the cache
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 3 Jun 2019 20:19:18 +0000 (22:19 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 5 Jun 2019 08:12:11 +0000 (10:12 +0200)
commit8f3c256f7ec971fc6fdfaba51a4186c73f1d0bab
tree13d64f784e549755711226d963f97c4aa957be60
parent4c7ce017fc5ec2e95f84832d8a64242924441f91
MEDIUM: cache/htx: Always store info about HTX blocks in the cache

It was only done for the headers (including the EOH marker). data were prefixed
by the info field of these blocks. The payload and the trailers of the messages
were stored in raw. The total size of headers and payload were kept in the
cached object state to help output formatting.

Now, info about each HTX block is store in the cache. Only data are allowed to
be splitted. Otherwise, all blocks of an HTX message are handled the same way,
both when storing a message in the cache and when delivering it from the
cache. This will help the cache implementation to be more robust to internal
changes in the HTX. Especially for the upcoming parsing of trailers. There is
also no more need to keep extra info in the cached object state.
include/types/applet.h
src/cache.c