aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@torproject.org>2022-01-21 18:09:48 +0000
committerMike Perry <mikeperry-git@torproject.org>2022-02-22 19:28:35 +0000
commit8052d0c2c08ac227aaee1134a52d5a3993ba4b10 (patch)
treeca0ad17e8886cfd7ce168e0323175547af696d95
parent338d00ba924a3884900bac425b35b6a2320da306 (diff)
downloadtor-8052d0c2c08ac227aaee1134a52d5a3993ba4b10.tar.gz
tor-8052d0c2c08ac227aaee1134a52d5a3993ba4b10.zip
Increase RTT ratio used to detect monotime jumps/stalls.
In Shadow, we saw RTT jumps as high as 1000 naturally. So let's set this to 5000, to give us some breathing room.
-rw-r--r--src/core/or/congestion_control_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/or/congestion_control_common.c b/src/core/or/congestion_control_common.c
index 6fa3bb9a11..fe3228262a 100644
--- a/src/core/or/congestion_control_common.c
+++ b/src/core/or/congestion_control_common.c
@@ -698,7 +698,7 @@ static bool
time_delta_stalled_or_jumped(const congestion_control_t *cc,
uint64_t old_delta, uint64_t new_delta)
{
-#define DELTA_DISCREPENCY_RATIO_MAX 100
+#define DELTA_DISCREPENCY_RATIO_MAX 5000
/* If we have a 0 new_delta, that is definitely a monotime stall */
if (new_delta == 0) {
static ratelim_t stall_info_limit = RATELIM_INIT(60);