Skip to content

Commit

Permalink
BUG/MINOR: quic: fix discarding of already stored out-of-order ACK
Browse files Browse the repository at this point in the history
  • Loading branch information
a-denoyelle committed Oct 9, 2024
1 parent 5febf6a commit dd602ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/quic_stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ static int qc_stream_buf_store_ack(struct qc_stream_buf *buf,
ack_less = eb64_entry(less, struct qc_stream_ack, offset_node);

/* Ensure that offset:len range has not been already acknowledged, at least partially. */
if ((ack_more && offset == ack_more->offset_node.key && offset + len <= ack_more->offset_node.key) ||
if ((ack_more && offset == ack_more->offset_node.key && offset + len <= ack_more->offset_node.key + ack_more->len) ||
(ack_less && ack_less->offset_node.key + ack_less->len >= offset + len)) {
newly_acked = 0;
goto end;
Expand Down

0 comments on commit dd602ea

Please sign in to comment.