Skip to content

Commit

Permalink
MINOR: quic: enforce ACK are handled in order
Browse files Browse the repository at this point in the history
  • Loading branch information
a-denoyelle committed Aug 6, 2024
1 parent a9b0be6 commit 7cdb5fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/quic_stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ int qc_stream_desc_ack(struct qc_stream_desc **stream, size_t offset, size_t len
/* Frame cannot advertise FIN for an inferior data range. */
BUG_ON(fin && offset + len < s->ack_offset);

if (offset + len < s->ack_offset || offset > s->ack_offset)
/* No support now for out-of-order ACK reporting. */
BUG_ON(offset > s->ack_offset);

if (offset + len < s->ack_offset)
return 0;

diff = offset + len - s->ack_offset;
Expand Down

0 comments on commit 7cdb5fe

Please sign in to comment.