]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: quic: trigger fast connection closing on process stopping
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 1 Feb 2023 08:28:55 +0000 (09:28 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 20 Feb 2023 10:20:18 +0000 (11:20 +0100)
commit77ed63106d30e033576a0b6426541df53f1278b6
treeccd7bc5cc690b3f771e48e78f2b87899434e2041
parentfb375574f947143e185225558c274ac00a3f8cb4
MEDIUM: quic: trigger fast connection closing on process stopping

With previous commit, quic-conn are now handled as jobs to prevent the
termination of haproxy process. This ensures that QUIC connections are
closed when all data are acknowledged by the client and there is no more
active streams.

The quic-conn layer emits a CONNECTION_CLOSE once the MUX has been
released and all streams are acknowledged. Then, the timer is scheduled
to definitely free the connection after the idle timeout period. This
allows to treat late-arriving packets.

Adjust this procedure to deactivate this timer when process stopping is
in progress. In this case, quic-conn timer is set to expire immediately
to free the quic-conn instance as soon as possible. This allows to
quickly close haproxy process.

This should be backported up to 2.7.
include/haproxy/quic_conn-t.h
src/quic_conn.c
src/xprt_quic.c