]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: do not decrement jobs for backend conns
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 19 Nov 2025 10:40:40 +0000 (11:40 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 19 Nov 2025 15:02:22 +0000 (16:02 +0100)
commit46c5c232d72e9c2f193f654bc5b7529e02441fce
treec2f9a7ee4a9f757bdbfebd92ea621747f104aa25
parent1a22caa6edee1a6f12af7cb291d2598165f46522
BUG/MINOR: quic: do not decrement jobs for backend conns

jobs is a global counter which serves to account activity through the
whole process. Soft-stop procedure will wait until this counter is
resetted to the nul value.

jobs is not used for backend connections. Thus, it is not incremented
when a QUIC backend connection is instantiated as expected. However,
decrement is performed on all sides during quic_conn_release(). This
causes the counter wrapping.

Fix this by decrementing jobs only for frontend connections. Without
this patch, soft stop procedure will hang indefinitely if QUIC backend
connections were in use.
src/quic_conn.c