conflux: Flag set as in full teardown in the free path
commita382337be629ff74e621d2e24c8048e9e8d31d26
authorDavid Goulet <dgoulet@torproject.org>
Wed, 11 Oct 2023 14:51:16 +0000 (11 10:51 -0400)
committerMike Perry <mikeperry-git@torproject.org>
Mon, 16 Oct 2023 21:18:57 +0000 (16 21:18 +0000)
treee5e2df17dcab41d148ec20126721fcbdc0c7725c
parentc11ba9dea8aea6f502e7041b6376983cf295666f
conflux: Flag set as in full teardown in the free path

We suspect a shutdown race of some sort for which the full teardown is not
noticed during the close but should be during the free.

For that, we flag the conflux set as in full teardown (if so) in the free path
in case the close path didn't caught it.

Fixes #40870

Signed-off-by: David Goulet <dgoulet@torproject.org>
changes/ticket40870 [new file with mode: 0644]
src/app/main/shutdown.c
src/core/or/conflux_pool.c
src/core/or/conflux_pool.h
src/test/test_conflux_pool.c