]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: quic: send CONNECTION_CLOSE on released MUX
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 13 Jul 2022 13:18:16 +0000 (15:18 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 15 Jul 2022 13:56:13 +0000 (15:56 +0200)
commit240b1b108b2292ef73fea68ce273be9d26c33cfa
tree0f3bbeddf17672671ea9741694643422ad2c2084
parent069288b4c0f0a7c1813bbc68ef710e3a7e7abc32
MEDIUM: quic: send CONNECTION_CLOSE on released MUX

Send a CONNECTION_CLOSE if the MUX has been released and all STREAM data
are acknowledged. This is useful to prevent a client from trying to use
a connection which have the upper layer closed.

To implement this a new function qc_check_close_on_released_mux() has
been added. It is called on QUIC MUX release notification and each time
a qc_stream_desc has been released.

This commit is associated with the previous one :
  MINOR: mux-quic/h3: schedule CONNECTION_CLOSE on app release
Both patches are required to prevent the risk of browsers stuck on
webpage loading if MUX has been released. On CONNECTION_CLOSE reception,
the client will reopen a new QUIC connection.
src/xprt_quic.c