]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: cache: Don't rely on a chunk to store messages payload
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 3 Feb 2026 06:45:03 +0000 (07:45 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 18 Feb 2026 12:26:20 +0000 (13:26 +0100)
commit5965a6e1d2afa8041c4b518f878f3d22066e20e4
tree8258368eb02c66577fd716773f1a86876ddbdff0
parent9ad9def1265c50c3a1ec8270a2c10451f38dd2c7
MEDIUM: cache: Don't rely on a chunk to store messages payload

When the response payload is stored in the cache, we can avoid to use a
trash chunk as temporary space area before copying everything in the cache
in one call. Instead we can directly write each HTX block in the cache, one
by one. It should not be an issue because, most of time, there is only one
DATA block.

This commit depends on "BUG/MEDIUM: shctx: Use the next block when data
exactly filled a block".
src/cache.c