]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: liberate the TX stream buffer after ACK processing
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 24 Feb 2022 09:56:33 +0000 (10:56 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 25 Feb 2022 14:06:17 +0000 (15:06 +0100)
commit0c7679dd86f53c04f52620dfa4f66980347683d0
tree9d364d00afacf62d8fa1cacfcec0a9de241ee8f4
parent642ab063132c414c41cc8061d87a653073720437
MINOR: quic: liberate the TX stream buffer after ACK processing

The sending buffer of each stream is cleared when processing ACKs
corresponding to STREAM emitted frames. If the buffer is empty, free it
and offer it as with other dynamic buffers usage.

This should reduce memory consumption as before an opened stream
confiscate a buffer during its whole lifetime even if there is no more
data to transmit.
src/xprt_quic.c