Consider rt_prop for max_win
@@ -729,8 +729,8 @@ static void picoquic_bbr_notify(
case picoquic_congestion_notification_bw_measurement:
/* RTT measurements will happen after the bandwidth is estimated */
if (bbr_state->state == picoquic_bbr_alg_startup_long_rtt) {
- uint64_t max_win = path_x->max_bandwidth_estimate * path_x->smoothed_rtt / 1000000;
- uint64_t min_win = max_win /= 2;
+ uint64_t max_win;
+ uint64_t min_win;
BBRUpdateBtlBw(bbr_state, path_x);
if (rtt_measurement <= bbr_state->rt_prop) {
@@ -742,6 +742,9 @@ static void picoquic_bbr_notify(
}
bbr_state->bytes_delivered = 0;
+ max_win = path_x->max_bandwidth_estimate * bbr_state->rt_prop / 1000000;
+ min_win = max_win /= 2;
+
if (path_x->cwin < min_win) {
path_x->cwin =min_win;
}
