Skip to content

Commit 1a1792a

Browse files
committed
fixup! fixup! congure_quic: initial import of QUIC congestion control
1 parent fcd5eb6 commit 1a1792a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sys/congure/quic/congure_quic.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ static void _snd_report_msg_sent(congure_snd_t *cong, unsigned sent_size)
203203
{
204204
congure_quic_snd_t *c = (congure_quic_snd_t *)cong;
205205

206-
assert((c->in_flight_size + sent_size) <= c->super.cwnd);
206+
if ((c->in_flight_size + sent_size) <= c->super.cwnd) {
207+
c->in_flight_size += sent_size;
208+
}
207209

208210
c->in_flight_size += sent_size;
209211
}

0 commit comments

Comments
 (0)