]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cache/htx: Fix the counting of data already sent by the cache applet
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 11 Jun 2019 07:58:09 +0000 (09:58 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 11 Jun 2019 12:05:25 +0000 (14:05 +0200)
commitbda8397fba027eaee2c46d566a7e85343dc2de02
tree928770845c57c92b11c861a15b0731b99b319e31
parent34a150ccf5157a04558d5b67e3901045d99ccdea
BUG/MINOR: cache/htx: Fix the counting of data already sent by the cache applet

Since the commit 8f3c256f7 ("MEDIUM: cache/htx: Always store info about HTX
blocks in the cache"), it is possible to read info about a data block without
sending anything. It is possible because we rely on the function htx_add_data(),
which will try to add data without any defragmentation. In such case, info about
the data block are skipped but don't count in data sent.

No need to backport this patch, expect if the commit 8f3c256f7 is backported
too.
src/cache.c