]> git.ipfire.org Git - thirdparty/haproxy.git/commit
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)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 26 Jan 2024 15:00:53 +0000 (16:00 +0100)
commit1da5787db44547590da0f339b797d728f04a01fd
tree65e69bab744907a44ca233e8084562fa8ee98034
parent96385f40b508a395fcd802a9dff13e968c12433d
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.
src/quic_stream.c