commit | 25cf19d5c80cc61381a18afdc3dd50428e5f8b95 | [log] [tgz] |
---|---|---|
author | Amaury Denoyelle <adenoyelle@haproxy.com> | Thu May 11 16:50:04 2023 +0200 |
committer | Amaury Denoyelle <adenoyelle@haproxy.com> | Fri May 12 15:29:28 2023 +0200 |
tree | 500e6ff6bcd6a2dfaa13065aaff4a1a04f656630 | |
parent | 76d502588d8909913dab0fb2c73cbdba8728a0b7 [diff] |
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.