]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIIM: mux-h1: Add splicing support for chunked messages
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 20 Jun 2023 11:34:49 +0000 (13:34 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 20 Jun 2023 11:34:49 +0000 (13:34 +0200)
commitc6ca6db0348b655d0d05ff33860915d6d6ae6ff7
treefe7870524c8bdadb6fb9866ab1575da9b16e6be1
parent8bd835b2d28b978ce19a27f4ea57b8cecb126bcf
MEDIIM: mux-h1: Add splicing support for chunked messages

When the HTX was introduced, we have lost the support for the kernel
splicing for chunked messages. Thanks to this patch set, it is possible
again. Of course, we still need to keep the H1 parser synchronized. Thus
only the chunk content can be spliced. We still need to read the chunk
envelope using a buffer.

There is no reason to backport this feature. But, just in case, this patch
depends on following patches:

  * "MEDIUM: filters/htx: Don't rely on HTX extra field if payload is filtered"
  * "MINOR: mux-h1: Add function to prepend the chunk crlf to the output buffer"
  * "MINOR: mux-h1: Add function to append the chunk size to the output buffer"
  * "REORG: mux-h1: Rename functions to emit chunk size/crlf in the output buffer"
  * "MEDIUM: mux-h1: Split h1_process_mux() to make code more readable"
src/mux_h1.c