]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h2: set CO_SFL_MSG_MORE when sending multiple buffers
authorWilly Tarreau <w@1wt.eu>
Fri, 17 Mar 2023 15:09:14 +0000 (16:09 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 17 Mar 2023 15:43:51 +0000 (16:43 +0100)
commit464fa06e9adbadc0c93fa5866d8fa4f55d69c2eb
tree83b9126bd5fd7d46cb0126afc2c88acaa86a92ea
parent88718955f4cef87fcf656b451c7b301ff968938d
MINOR: mux-h2: set CO_SFL_MSG_MORE when sending multiple buffers

Traces show that sendto() rarely has MSG_MORE on H2 despite sending
multiple buffers. The reason is that the loop iterating over the buffer
ring doesn't have this info and doesn't pass it down.

But now we know how many buffers are left to be sent, so we know whether
or not the current buffer is the last one. As such we can set this flag
for all buffers but the last one.
src/mux_h2.c