]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-quic: no need to subscribe for detach streams
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 3 May 2023 07:50:04 +0000 (09:50 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 11 May 2023 12:04:51 +0000 (14:04 +0200)
commit69670e88bddbaf60e3abbfaf7a151ce2e11b952f
tree48fa88bcb9211e8d2c3886f8a4df9987c776d3e5
parent131f2d93e1f45cde30fa838cfe93b6056a999c8f
BUG/MINOR: mux-quic: no need to subscribe for detach streams

When detach is conducted by stream endpoint layer, a stream is either
freed or just flagged as detached if the transfer is not yet finished.
In the latter case, the stream will be finally freed via
qc_purge_streams() which is called periodically.

A subscribe was done on quic-conn layer if a stream cannot be freed via
qc_purge_streams() as this means FIN STREAM has not yet been sent.
However, this is unnecessary as either HTX EOM was not yet received and
we are waiting for the upper layer, or FIN stream is still in the buffer
but was not yet transmitted due to an incomplete transfer, in which case
a subscribe should have already been done.

This should be backported up to 2.7.
src/mux_quic.c