mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
Exit slow start at the gamma threshold
This improves performance and fairness.
This commit is contained in:
parent
1960bf09f3
commit
3a3f111b23
@ -210,8 +210,8 @@ congestion_control_vegas_process_sendme(congestion_control_t *cc,
|
|||||||
cc->cwnd = MAX(cc->cwnd + MAX(CWND_INC_SS(cc), 2*cc->sendme_inc),
|
cc->cwnd = MAX(cc->cwnd + MAX(CWND_INC_SS(cc), 2*cc->sendme_inc),
|
||||||
vegas_bdp_mix(cc));
|
vegas_bdp_mix(cc));
|
||||||
} else {
|
} else {
|
||||||
/* Congestion signal: Fall back to Vegas equilibrium (BDP) */
|
/* Congestion signal: Set cwnd to gamma threshhold */
|
||||||
cc->cwnd = vegas_bdp_mix(cc);
|
cc->cwnd = vegas_bdp_mix(cc) + cc->vegas_params.gamma;
|
||||||
cc->in_slow_start = 0;
|
cc->in_slow_start = 0;
|
||||||
log_info(LD_CIRC, "CC: TOR_VEGAS exiting slow start");
|
log_info(LD_CIRC, "CC: TOR_VEGAS exiting slow start");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user