]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h2: make sure the h2c task exists before refreshing it
authorWilly Tarreau <w@1wt.eu>
Thu, 16 Mar 2023 17:06:19 +0000 (18:06 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 16 Mar 2023 17:45:46 +0000 (18:45 +0100)
commit3fb2c6d5b40bf64d7e4f3fef88739b757555fbff
treef606d3284cfefc13bcf3cf5745e523819c50b53c
parent3a7b539b124bccaa57478e0a5a6d66338594615a
BUG/MINOR: mux-h2: make sure the h2c task exists before refreshing it

When detaching a stream, if it's the last one and the mbuf is blocked,
we leave without freeing the stream yet. We also refresh the h2c task's
timeout, except that it's possible that there's no such task in case
there is no client timeout, causing a crash. The fix just consists in
doing this when the task exists.

This bug has always been there and is extremely hard to meet even
without a client timeout. This fix has to be backported to all
branches, but it's unlikely anyone has ever met it anyay.
src/mux_h2.c