]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-quic: strengthen qcs_send_metadata() usage
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 1 Oct 2024 14:17:03 +0000 (16:17 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 1 Oct 2024 14:17:03 +0000 (16:17 +0200)
commit12782da020d2f31d84659ad5964f9618ea13ca11
treecd9a34c89cc73734671a81e617f9abf1ac722906
parentfdc16c1e01fc7fcf4479043c71e7a54cf49a6bc9
MINOR: mux-quic: strengthen qcs_send_metadata() usage

This function is reserved for QCS instance where no data was emitted.
A BUG_ON() ensures this by checking that streamdesc buf_list is empty.

However, this condition would not be enough if data were previously
emitted but already fully acknowledged. Thus, extend the condition by
also checking the streamdesc ack_offset is 0.
src/mux_quic.c