]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: cache: Add support for endp-to-endp fast-forwarding
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Nov 2023 16:25:30 +0000 (17:25 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Dec 2023 09:24:41 +0000 (10:24 +0100)
commitebead3c0a168a38e6cadc4090b1935a26aa7d3a3
tree46d48389389f72e0804283ab5b4a0c992dc5466f
parent5baa9ea1683f2aebeed434e38e280da47d907713
MEDIUM: cache: Add support for endp-to-endp fast-forwarding

It is now possible to directly forward data to the opposite side from the
cache applet. To do so, dedicated functions were added to fast-forward the
payload part of the cached objects. Of course headers and trailers are still
sent via the channel's buffer, using the HTX.

When an object is delivered from the cache, once the applet reaches the
HTX_CACHE_DATA state, it declares it can fast-forward data. From this point,
all data are directly transferred to the oppposite side.
src/cache.c