MINOR: quic: do not proceed to accept for closing conn
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 17 Apr 2023 07:31:16 +0000 (09:31 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 18 Apr 2023 14:54:48 +0000 (16:54 +0200)
commit987812b190cd98f1f17d3d30e79e07d7e46fca3e
treea40e563e49b5149cf917d5d4700218c284a401e2
parentf16ec344d5b172af603fb0d44ccdc45c0263b5f6
MINOR: quic: do not proceed to accept for closing conn

Each quic_conn is inserted in an accept queue to allocate the upper
layers. This is done through a listener tasklet in
quic_sock_accept_conn().

This patch interrupts the accept process for a quic_conn in
closing/draining state. Indeed, this connection will soon be closed so
it's unnecessary to allocate a complete stack for it.

This patch will become necessary when thread migration is implemented.
Indeed, it won't be allowed to proceed to thread migration for a closing
quic_conn.

This should be backported up to 2.7 after a period of observation.
src/quic_sock.c