]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-h1: do not forget EOH even when no header is sent
authorWilly Tarreau <w@1wt.eu>
Wed, 9 Aug 2023 09:58:15 +0000 (11:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 9 Aug 2023 09:58:15 +0000 (11:58 +0200)
commit5201b4abd16e453d4390f5ca19f34e33ddb5f3e0
tree340e2fbe930d10816639b5493231d7452ec7f539
parent949371a00dca228c31b59392615e5f087dcc6552
BUG/MEDIUM: mux-h1: do not forget EOH even when no header is sent

Since commit 723c73f8a ("MEDIUM: mux-h1: Split h1_process_mux() to make
code more readable"), outgoing H1 requests with no header at all (i.e.
essentially HTTP/1.0 requests) get delayed by 200ms. Christopher found
that it's due to the fact that we end processing too early and we don't
have the opportunity to send the EOH in this case.

This fix addresses it by verifying if it's required to emit EOH when
retruning from h1_make_headers(). But maybe that block could be moved
after the while loop in fact, or the stop condition in the loop be
revisited not to stop of !htx_is_empty(). The current solution gets the
job done at least.

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