]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: close connection on CID alloc failure
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 6 Nov 2025 13:45:33 +0000 (14:45 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 10 Nov 2025 11:10:14 +0000 (12:10 +0100)
commit73621adb23688d421c43df42f85f5171c2b3eafe
tree30ddf10096f226c14b2ae3ae644abf79a8b41b37
parent137d5ba93f62ef6e36caedac229ae47f7ddef48b
BUG/MINOR: quic: close connection on CID alloc failure

During RETIRE_CONNECTION_ID frame parsing, a new connection ID is
immediately reallocated after the release of the previous one. This is
done to ensure that the peer will never run out of DCID.

Prior to this patch, a CID allocation failure was be silently ignored.
This prevent the emission of a new CID, which could prevent the peer to
emit packets if it had no other CIDs available for use. Now, such error
is considered fatal to the connection. This is the safest solution as
it's better to close connections when memory is running low.

It must be backported up to 2.8.
src/quic_rx.c