Prop#329 OOM: Handle freeing conflux queues on OOM
commitb999051e449f4293a25b676b4a08b86d2bc4c5ad
authorDavid Goulet <dgoulet@torproject.org>
Fri, 3 Mar 2023 19:28:18 +0000 (3 14:28 -0500)
committerMike Perry <mikeperry-git@torproject.org>
Thu, 6 Apr 2023 15:57:10 +0000 (6 15:57 +0000)
treebcceb7ddcc086be255ab49a45ec302cab37ae5b5
parente0881a669a84d016ea108a5604f25bbcb45a7705
Prop#329 OOM: Handle freeing conflux queues on OOM

We use the oldest-circ-first method here, since that seems good for conflux:
queues could briefly spike, but the bad case is if they are maliciously
bloated to stick around for a long time.

The tradeoff here is that it is possible to kill old circuits on a relay
quickly, but that has always been the case with this algorithm choice.

Signed-off-by: David Goulet <dgoulet@torproject.org>
src/core/or/circuitlist.c
src/core/or/conflux.c
src/core/or/relay.c