Skip to content

Commit

Permalink
drop ack Through to last packet if Number of NACKs exceeds 255
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Apr 2, 2024
1 parent 85be76b commit 75df8d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libi2pd/Streaming.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ namespace stream
if (numNacks + (seqn - nextSeqn) >= 256)
{
LogPrint (eLogError, "Streaming: Number of NACKs exceeds 256. seqn=", seqn, " nextSeqn=", nextSeqn);
htobe32buf (packet + 12, nextSeqn); // change ack Through
htobe32buf (packet + 12, nextSeqn - 1); // change ack Through back
break;
}
for (uint32_t i = nextSeqn; i < seqn; i++)
Expand Down

0 comments on commit 75df8d3

Please sign in to comment.