]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-quic: close on frame alloc failure
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 9 Mar 2023 09:16:38 +0000 (10:16 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Mar 2023 13:39:49 +0000 (14:39 +0100)
commitabbb5ad1f5c05d062fe73cbabe9c11e6cc09afdb
treee0b95a7cedbfb1f7d76deaa3aaa6db39ca684339
parentc0c6b6d8c0f11f2106d881df09140b0e429251e9
MINOR: mux-quic: close on frame alloc failure

Replace all BUG_ON() on frame allocation failure by a CONNECTION_CLOSE
sending with INTERNAL_ERROR code. This can happen for the following
cases :
* sending of MAX_STREAM_DATA
* sending of MAX_DATA
* sending of MAX_STREAMS_BIDI

In other cases (STREAM, STOP_SENDING, RESET_STREAM), an allocation
failure will only result in the current operation to be interrupted and
retried later. However, it may be desirable in the future to replace
this with a simpler CONNECTION_CLOSE emission to recover better under a
memory pressure issue.

This should be backported up to 2.7.
src/mux_quic.c