]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-h1: Fix the zero-copy on output for chunked messages
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 12 Dec 2018 09:32:09 +0000 (10:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 12 Dec 2018 12:56:35 +0000 (13:56 +0100)
commitadb222004120a3ab242d04469e08e44d8ae9c35b
tree05e9eca9e91e1fe22197ccd1b3260f77bbc0342e
parent256bf0d37b0aa7d2bc22a5af00a7124092079815
BUG/MEDIUM: mux-h1: Fix the zero-copy on output for chunked messages

The commit 3815b227f ("MEDIUM: mux-h1: implement true zero-copy of DATA blocks")
broke the output of chunked messages. When the zero-copy was performed on such
messages, no chunk size was emitted nor ending CRLF.

Now, the chunked envelope is added when necessary. We have at least the size of
the struct htx to emit it. So 40 bytes for now. It should be enough.
src/mux_h1.c