]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-quic: refine reception of standalone STREAM FIN
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 4 Mar 2025 08:41:44 +0000 (09:41 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 7 Mar 2025 11:06:26 +0000 (12:06 +0100)
commit7dd1eec2b10bd13f05c792ec0e053c19aac952ee
tree3dcdb17a1a81d222707bc3ab5644225f4177a116
parent20dc8e4ec27672025c30d554a4dd29378b00ea37
MINOR: mux-quic: refine reception of standalone STREAM FIN

Reception of standalone STREAM FIN is a corner case, which may be
difficult to handle. In particular, care must be taken to ensure app_ops
rcv_buf() is always called to be notify about FIN, even if Rx buffer is
empty or full demux flag is set. If this is the case, it could prevent
closure of QCS Rx channel.

To ensure this, rcv_buf() was systematically called if FIN was received,
with or without data payload. This could called unnecessary invokation
when FIN is transmitted with data and full demux flag is set, or data
are received out-of-order.

This patches improve qcc_recv() by detecting explicitely a standalone
FIN case. Thus, rcv_buf() is only forcefully called in this case and if
all data were already previously received.
src/mux_quic.c