tor/src
Micah Elizabeth Scott 6023153631 hs_pow: modified approach to pqueue level thresholds
This centralizes the logic for deciding on these magic thresholds,
and tries to reduce them to just two: a min and max. The min should be a
"nearly empty" threshold, indicating that the queue only contains work
we expect to be able to complete very soon. The max level triggers a
bulk culling process that reduces the queue to half that amount.

This patch calculates both thresholds based on the torrc pqueue rate
settings if they're present, and uses generic defaults if the user asked
for an unlimited dequeue rate in torrc.

Signed-off-by: Micah Elizabeth Scott <beth@torproject.org>
2023-05-10 07:41:37 -07:00
..
app hs_pow: Replace libb2 dependency with hashx's internal blake2 2023-05-10 07:38:28 -07:00
config Merge branch 'maint-0.4.7' 2023-01-12 11:07:40 -05:00
core hs_pow: client side effort adjustment 2023-05-10 07:40:46 -07:00
ext hashx: trim trailing whitespace 2023-05-10 07:38:28 -07:00
feature hs_pow: modified approach to pqueue level thresholds 2023-05-10 07:41:37 -07:00
lib sandbox: allow stack mmap with prot_none 2023-05-10 07:38:28 -07:00
test hs_pow: client side effort adjustment 2023-05-10 07:40:46 -07:00
tools Remove broken MSVC support 2022-04-27 23:09:44 -04:00
trunnel hs_pow: Define seed_head as uint8_t[4] instead of uint32_t 2023-05-10 07:38:28 -07:00
arch_goals.md Document high-level architecture goals 2019-12-10 16:47:38 -06:00
include.am Remove broken MSVC support 2022-04-27 23:09:44 -04:00
mainpage.md Move description of ext contents into an md file. 2020-07-02 13:46:25 -04:00