commit 5d6e0b8e13a443eb67bee4a4748cc1631073a59c
parent 33657037a1b6fe115e5b8e537b39a493bf11bfa2
Author: David Goulet <dgoulet@torproject.org>
Date: Tue, 10 Jan 2023 15:58:28 -0500
Merge branch 'maint-0.4.7'
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/core/or/congestion_control_common.c b/src/core/or/congestion_control_common.c
@@ -902,7 +902,7 @@ congestion_control_update_circuit_rtt(congestion_control_t *cc,
if (cc->min_rtt_usec == 0) {
// If we do not have a min_rtt yet, use current ewma
cc->min_rtt_usec = cc->ewma_rtt_usec;
- } else if (cc->cwnd == cc->cwnd_min) {
+ } else if (cc->cwnd == cc->cwnd_min && !cc->in_slow_start) {
// Raise min rtt if cwnd hit cwnd_min. This gets us out of a wedge state
// if we hit cwnd_min due to an abnormally low rtt.
uint64_t new_rtt = percent_max_mix(cc->ewma_rtt_usec, cc->min_rtt_usec,