]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: htx: add function to set EOM reliably
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 11 May 2023 14:50:04 +0000 (16:50 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 12 May 2023 13:29:28 +0000 (15:29 +0200)
commit25cf19d5c80cc61381a18afdc3dd50428e5f8b95
tree500e6ff6bcd6a2dfaa13065aaff4a1a04f656630
parent76d502588d8909913dab0fb2c73cbdba8728a0b7
MINOR: htx: add function to set EOM reliably

Implement a new HTX utility function htx_set_eom(). If the HTX message
is empty, it will first add a dummy EOT block. This is a small trick
needed to ensure readers will detect the HTX buffer as not empty and
retrieve the EOM flag.

Replace the H2 code related by a htx_set_eom() invocation. QUIC also has
the same code which will be replaced in the next commit.

This should be backported up to 2.7 before the related QUIC patch.
include/haproxy/htx.h
src/mux_h2.c