Skip to content

Commit a39d050

Browse files
committed
Fix Acknowledgement
1 parent 07e514d commit a39d050

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/quic/streams.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,10 +1128,7 @@ void Stream::Acknowledge(size_t datalen) {
11281128

11291129
Debug(this, "Acknowledging %zu bytes", datalen);
11301130

1131-
// ngtcp2 guarantees that offset must always be greater than the previously
1132-
// received offset.
1133-
DCHECK_GE(datalen, STAT_GET(Stats, max_offset_ack));
1134-
STAT_SET(Stats, max_offset_ack, datalen);
1131+
STAT_SET(Stats, max_offset_ack, STAT_GET(Stats, max_offset_ack) + datalen);
11351132

11361133
// Consumes the given number of bytes in the buffer.
11371134
outbound_->Acknowledge(datalen);

0 commit comments

Comments
 (0)