]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cache: Check cache entry is complete in case of Vary
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Tue, 21 Feb 2023 16:42:04 +0000 (17:42 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 21 Feb 2023 17:35:48 +0000 (18:35 +0100)
commit25917cdb12412378a80e755ffc18b5cb67c36fd2
tree2602d75a35bfe22607d7bd3319bebf30eb51aac5
parent879debeecb93202c983f25f5f1d765e74d77faa5
BUG/MINOR: cache: Check cache entry is complete in case of Vary

Before looking for a secondary cache entry for a given request we
checked that the first entry was complete, which might prevent us from
using a valid entry if the first one with the same primary key is not
full yet.
Likewise, if the primary entry is complete but not the secondary entry
we try to use, we might end up using a partial entry from the cache as
a response.

This bug was raised in GitHub #2048.
It can be backported up to branch 2.4.
src/cache.c