1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-19 01:09:58 +00:00

drop ack Through to last packet if Number of NACKs exceeds 255

This commit is contained in:
orignal 2024-04-02 11:30:38 -04:00
parent 85be76b01a
commit 75df8d3c7b

View File

@ -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++)