]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: do not remove qc_stream_desc automatically on ACK handling
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 26 Sep 2024 14:14:40 +0000 (16:14 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 1 Oct 2024 14:19:25 +0000 (16:19 +0200)
commitf4a83fbb14bdd14ed94752a2280a2f40c1b690d2
tree50cfea8b213c5f0d2634f03924aa096a82cedbb2
parentdb68f8ed8604c5865cc044f577629b1d75df4153
MINOR: quic: do not remove qc_stream_desc automatically on ACK handling

qc_stream_desc_ack() is used to handle ACK received for STREAM frame. It
removes acknowledged data from their underlying buffer.

If all data were removed after ACK handling, qc_stream_desc instance
would automatically be freed at the end of qc_stream_desc_ack().
However, this renders the function complicated to use. Simplify this by
removing this automatic removal. Now, caller is responsible to check
after ACK handling if qc_stream_desc instance can be removed. This is
easily done using qc_stream_desc_done() helper.
include/haproxy/quic_stream.h
src/quic_rx.c
src/quic_stream.c