]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-quic: properly handle buf alloc failure
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 11 May 2023 14:52:17 +0000 (16:52 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 12 May 2023 13:51:15 +0000 (15:51 +0200)
commit0abde9dee69fe151f5f181a34e0782ef840abe53
tree47a4f6ffe1d611f6e3ee57f7667e3fdee1257ddf
parent93dd23cab4b0e5c0dde440c98e31c33aa1221f95
BUG/MINOR: mux-quic: properly handle buf alloc failure

A convenience function qc_get_buf() is implemented to centralize buffer
allocation on MUX and H3 layers. However, allocation failure was not
handled properly with a BUG_ON() statement.

Replace this by proper error management. On emission, streams is
temporarily skip over until the next qc_send() invocation. On reception,
H3 uses this function for HTX conversion; on alloc failure the
connection will be closed with QUIC internal error code.

This must be backported up to 2.6.
src/h3.c
src/mux_quic.c