]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-h2: Handle EOM flag when sending a DATA frame with zero-copy
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 27 Apr 2021 20:51:07 +0000 (22:51 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 28 Apr 2021 09:08:35 +0000 (11:08 +0200)
commit925abdfdac60497a880e82ccbe7144e44e1cd66c
tree8d1e1f234059a8ba3e35493a854b343dc026e083
parentbd878d2c73b99797a4780777513fdf9eb3d1d43d
BUG/MEDIUM: mux-h2: Handle EOM flag when sending a DATA frame with zero-copy

When a DATA frame is sent, we must take care to properly detect the EOM flag
on the HTX message to set ES flag on the frame when necessary, to finish the
stream. But it is only done when data are copied from the HTX message to the
mux buffer and not when the frame are sent via a zero-copy. This patch fixes
this bug.

It is a 2.4-specific bug. No backport is needed.
src/mux_h2.c