MINOR: mux-quic: define qc_shutdown()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 24 Jan 2023 17:18:23 +0000 (18:18 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 20 Feb 2023 10:18:58 +0000 (11:18 +0100)
commitb30247b16cde194b7a92fa6e99f6606d562f53c6
treefcb61e15ad3fd15d0b7fc3a21b1eff8b2420dafb
parent3d550848beb694b566aad05f6d7c549cf35d9f00
MINOR: mux-quic: define qc_shutdown()

Factorize shutdown operation in a dedicated function qc_shutdown(). This
will allow to call it from multiple places. A new flag QC_CF_APP_SHUT is
also defined to ensure it will only be executed once even if called
multiple times per connection.

This commit will be useful to properly support haproxy soft stop.
This should be backported up to 2.7.
include/haproxy/mux_quic-t.h
src/mux_quic.c