Skip to content

Commit

Permalink
reset rate meter when promoting a new path
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuho committed Apr 26, 2024
1 parent 4ff0da6 commit 2c11e0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/quicly.c
Original file line number Diff line number Diff line change
Expand Up @@ -1913,6 +1913,9 @@ static int promote_path(quicly_conn_t *conn, size_t path_index)
? conn->egress.loss.rtt.smoothed
: conn->super.ctx->loss.default_initial_rtt);

/* reset ratemeter */
quicly_ratemeter_init(&conn->egress.ratemeter);

/* remember PN when the path was promoted */
conn->egress.pn_path_start = conn->egress.packet_number;

Expand Down

0 comments on commit 2c11e0f

Please sign in to comment.