Skip to content

Commit 14b222e

Browse files
authored
Merge pull request #1861 from alexrabi/master
Prevent Prague from crashing
2 parents f5e17ef + 7f8e34e commit 14b222e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

picoquic/prague.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ void picoquic_prague_notify(
300300
/* Regardless of the alg state, update alpha */
301301
picoquic_prague_update_alpha(cnx, path_x, pr_state, ack_state->nb_bytes_acknowledged, current_time);
302302

303-
/* Increae or reduce the congestion window based on alpha */
303+
/* Increase or reduce the congestion window based on alpha */
304304
switch (pr_state->alg_state) {
305305
case picoquic_prague_alg_slow_start:
306306
/* TODO l4s_prague test fails. Have to increase max_completion time about 100 ms */
@@ -383,11 +383,11 @@ void picoquic_prague_notify(
383383
/* ignore */
384384
break;
385385
}
386-
}
387386

388-
/* Compute pacing data */
389-
picoquic_update_pacing_data(cnx, path_x, pr_state->alg_state == picoquic_prague_alg_slow_start &&
390-
pr_state->ssthresh == UINT64_MAX);
387+
/* Compute pacing data */
388+
picoquic_update_pacing_data(cnx, path_x, pr_state->alg_state == picoquic_prague_alg_slow_start &&
389+
pr_state->ssthresh == UINT64_MAX);
390+
}
391391
}
392392

393393
/* Release the state of the congestion control algorithm */

0 commit comments

Comments
 (0)