]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: mark quic-conn as jobs on socket allocation
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 1 Feb 2023 08:28:32 +0000 (09:28 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 20 Feb 2023 10:20:18 +0000 (11:20 +0100)
commitfb375574f947143e185225558c274ac00a3f8cb4
tree2c8d31431221199498f66e5b69972fb0095b29bd
parentb3aa07c78e5f5d39c4c47a4f666711cea806e5f2
MINOR: quic: mark quic-conn as jobs on socket allocation

To prevent data loss for QUIC connections, haproxy global variable jobs
is incremented each time a quic-conn socket is allocated. This allows
the QUIC connection to terminate all its transfer operation during proxy
soft-stop. Without this patch, the process will be terminated without
waiting for QUIC connections.

Note that this is done in qc_alloc_fd(). This means only QUIC connection
with their owned socket will properly support soft-stop. In the other
case, the connection will be interrupted abruptly as before. Similarly,
jobs decrement is conducted in qc_release_fd().

This should be backported up to 2.7.
doc/configuration.txt
doc/management.txt
src/quic_conn.c