commit d36144ba31e9841a3b8ebb1650406f72256a540b
parent ec9e95cf1ee9aff6f2607f0b45e1d6d1f7ba4513
Author: Mike Perry <mikeperry-git@torproject.org>
Date: Thu, 14 Jul 2022 17:34:32 +0000
Initialize startup effort at 0.
If it works correctly, auto-tuning should set a non-zero effort once
an attack begins.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/feature/hs/hs_service.c b/src/feature/hs/hs_service.c
@@ -283,7 +283,7 @@ initialize_pow_defenses(hs_service_t *service)
/* We recalculate and update the suggested effort every HS_UPDATE_PERIOD
* seconds. */
- pow_state->suggested_effort = HS_POW_SUGGESTED_EFFORT_DEFAULT;
+ pow_state->suggested_effort = 0;
pow_state->rend_handled = 0;
pow_state->total_effort = 0;
pow_state->next_effort_update = (time(NULL) + HS_UPDATE_PERIOD);