MINOR: connection: add a BUG_ON() to detect destroying connection in idle list
authorOlivier Houchard <cognet@ci0.org>
Tue, 24 Jan 2023 22:59:32 +0000 (23:59 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 25 Jan 2023 14:30:49 +0000 (15:30 +0100)
commit9a0f8ba837aaa5ba8acfa21354b71818cdb87901
treed906b632dfb2ab9b33c041174a2dd7c2de4b2075
parent083b2306995ff81858aa69563493664ded76f5cd
MINOR: connection: add a BUG_ON() to detect destroying connection in idle list

Add a BUG_ON() in conn_free(), to check that when we're freeing a
connection, it is not still in the idle connections tree, otherwise the
next thread that will try to use it will probably crash.
src/connection.c