mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
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.
This commit is contained in:
parent
338d00ba92
commit
8052d0c2c0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user