MINOR: quic: extract qc_stream_buf free in a dedicated function
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 26 Jan 2024 13:30:16 +0000 (14:30 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 31 Jan 2024 14:44:56 +0000 (15:44 +0100)
commit5afa702cc2d986fd0688ea80b84135f694ba6d17
treed96ed2700aeb6bcf95243cfb48fab4a1d87ea75e
parentdedf0f44503a962bbbfde0bd5b21560798ebe59d
MINOR: quic: extract qc_stream_buf free in a dedicated function

On ACK reception, data are removed from buffer via qc_stream_desc_ack().
The buffer can be freed if no more data are left. A new slot is also
accounted in buffer connection pool. Extract this operation in a
dedicated private function qc_stream_buf_free().

This change should have no functional change. However it will be useful
for the next patch which needs to remove a buffer from another function.

This patch is necessary for the following bugfix. As such, it must be
backported with it up to 2.6.

(cherry picked from commit 1da5787db44547590da0f339b797d728f04a01fd)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/quic_stream.c