]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: quic: respect closing state even on soft-stop
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 26 Oct 2023 12:15:41 +0000 (14:15 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 10 Nov 2023 14:26:03 +0000 (15:26 +0100)
commitf549eb2b34597f59cc3a617276da0d9af6d00514
tree7554f0419674d1de4224dab7eae098aa0a03ab02
parent75e36c57f068ee516d54e44dd901c3a7e9383076
MEDIUM: quic: respect closing state even on soft-stop

Prior to this patch, a special condition was set when idle timer was
rearmed for closing connections during haproxy process stopping. In this
case, the timeout was ditched and the idle task woken up immediatly.

The objective was to release quickly closing connections to not prevent
the process stopping to be too long. However, it is not conform with RFC
9000 recommandations and may cause some clients to miss a
CONNECTION_CLOSE in case of a packet loss.

A recent fix was set to use a shorter timeout for closing state. Now a
connection should only be left in this state for one second or less.
This reduces greatly the importance of stopping special condition. Thus,
this patch removes it completely.
src/quic_conn.c