]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Increment by at least 2 sendme_incs in slow start
authorMike Perry <mikeperry-git@torproject.org>
Sat, 22 Jan 2022 19:22:40 +0000 (19:22 +0000)
committerMike Perry <mikeperry-git@torproject.org>
Tue, 22 Feb 2022 19:28:35 +0000 (19:28 +0000)
src/core/or/congestion_control_vegas.c

index d823a5068ea14474c44c3d0c1f8d71c298ff4a03..0ebff17fafc855edca3a40105f0fc1933765cce8 100644 (file)
@@ -206,8 +206,8 @@ congestion_control_vegas_process_sendme(congestion_control_t *cc,
     if (cc->in_slow_start) {
       if (queue_use < cc->vegas_params.gamma && !cc->blocked_chan) {
         /* Grow to BDP immediately, then exponential growth until
-         * congestion signal */
-        cc->cwnd = MAX(cc->cwnd + CWND_INC_SS(cc),
+         * congestion signal. Increment by at least 2 sendme's worth. */
+        cc->cwnd = MAX(cc->cwnd + MAX(CWND_INC_SS(cc), 2*cc->sendme_inc),
                        vegas_bdp_mix(cc));
       } else {
         /* Congestion signal: Fall back to Vegas equilibrium (BDP) */