]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Increase RTT ratio used to detect monotime jumps/stalls.
authorMike Perry <mikeperry-git@torproject.org>
Fri, 21 Jan 2022 18:09:48 +0000 (18:09 +0000)
committerMike Perry <mikeperry-git@torproject.org>
Tue, 22 Feb 2022 19:28:35 +0000 (19:28 +0000)
In Shadow, we saw RTT jumps as high as 1000 naturally.

So let's set this to 5000, to give us some breathing room.

src/core/or/congestion_control_common.c

index 6fa3bb9a11d5e53baae2ece99ac584e858cf3e61..fe3228262a21abe74a44cc793e073e74b8196bff 100644 (file)
@@ -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);