]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: h3: properly handle alloc failure on finalize
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 15 Dec 2023 16:32:06 +0000 (17:32 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 20 Dec 2023 14:39:51 +0000 (15:39 +0100)
commit7a3602a1f55dacda5a669865e04474f5d503bab7
treeea3dcd850575b4f30a13a44c4ef68677bce1c43f
parenta2dbd6d916ed06d7c7b3db5a8dc77bc01c13d2c0
BUG/MINOR: h3: properly handle alloc failure on finalize

If H3 control stream Tx buffer cannot be allocated, return a proper
errur through h3_finalize(). This will cause the emission of a
CONNECTION_CLOSE with error H3_INTERNAL_ERROR and closure of the whole
connection.

This should be backported up to 2.6. Note that 2.9 has some difference
which will cause conflict. The main one is that qcc_get_stream_txbuf()
does not exist in this version. Instead the check in h3_control_send()
should be made after mux_get_buf(). Finally, it may be useful to first
pick previous commit (MINOR: h3: add traces for connection init stage)
to improve context similarity.
src/h3.c