]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: h3: check connection error during sending
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 22 Dec 2023 10:45:54 +0000 (11:45 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 22 Dec 2023 14:40:11 +0000 (15:40 +0100)
commit642016ce033aeb5ccc09b81b98db8046eefd2e2c
treea5b964bcf2165bead7117de40788aa8ee6b48329
parent10e96fcd177e858284252d413aaf16af06474beb
MINOR: h3: check connection error during sending

If an error occurs during HTX to H3 encoding, h3_snd_buf() should be
interrupted. This commit add this possibility by checking for <h3c.err>
member value. If non null, sending loop is stopped and an error is
reported using qcc_set_error().

This commit does not change any behavior for now, as <h3c.err> is never
set during sending. However, this will change in future commits, most
notably to reject too many headers or handle buffer allocation failure.
As such, this commit should be backported along the following fixes.
Note that in 2.6 qcc_set_error() does not exist and must be replaced by
qcc_emit_cc_app().
src/h3.c