]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: proxy: use thread-safe stream killing on hard-stop
authorWilly Tarreau <w@1wt.eu>
Wed, 24 Feb 2021 10:08:56 +0000 (11:08 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 Feb 2021 10:08:56 +0000 (11:08 +0100)
commit92b887e20a995323d3fbd42d2be035733cefd6ba
treecba8edd09412b76fb6d7bdd2c1e01f9ff1be7dc7
parent61d095ed37c90058fec0e728ebfbac038beb0504
BUG/MEDIUM: proxy: use thread-safe stream killing on hard-stop

When setting hard-stop-after, hard_stop() is called at the end to kill
last pending streams. Unfortunately there's no locking there while
walking over the streams list nor when shutting them down, so it's
very likely that some old processes have been crashing or gone wild
due to this. Let's use a thread_isolate() call for this as we don't
have much other choice (and it happens once in the process' life,
that's OK).

This must be backported to 1.8.
src/proxy.c