BUG/MEDIUM: mux-h1: do not forget TLR/EOT even when no data is sent
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Oct 2023 09:07:33 +0000 (11:07 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Oct 2023 16:11:04 +0000 (18:11 +0200)
commite9f6e8e7f6fedb7758e395437c456d602497a2b1
treec7c61fd1cb14ab404c823019f7d16eca5d04f9fe
parent2f9db80cc66f71e50a957bacfc74118cbd8e0963
BUG/MEDIUM: mux-h1: do not forget TLR/EOT even when no data is sent

Since commit 723c73f8a ("MEDIUM: mux-h1: Split h1_process_mux() to make code
more readable"), outgoing H1 chunked messages with no data at all get
delayed by 200ms. It is due to the fact that we end processing too early and
we don't have the opportunity to process trailers in this case.

This fix addresses it by verifying if it's required to emit EOT or trailers,
if any, when retruning from h1_make_data()

No backport is needed, this was in 2.9-dev.
src/mux_h1.c