]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: support FIN on Rx-buffered STREAM frames
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 28 Feb 2022 10:38:36 +0000 (11:38 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 1 Mar 2022 10:07:06 +0000 (11:07 +0100)
commit3c4303998fd1b59f1f404ba166bde43fbfa24b7b
tree98b91fd72efd0ef3711d5f4b7a5ff2625efbb633
parent3bf06093dc06580d4cbb7b56d06d37f48e61b0e5
BUG/MINOR: quic: support FIN on Rx-buffered STREAM frames

FIN flag on a STREAM frame was not detected if the frame was previously
buffered on qcs.rx.frms before being handled.

To fix this, copy the fin field from the quic_stream instance to
quic_rx_strm_frm. This is required to properly notify the FIN flag on
qc_treat_rx_strm_frms for the MUX layer.

Without this fix, the request channel might be left opened after the
last STREAM frame reception if there is out-of-order frames on the Rx
path.
include/haproxy/xprt_quic-t.h
src/xprt_quic.c