From 75df8d3c7bc843082c5dffa82553f1342b831a50 Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 2 Apr 2024 11:30:38 -0400 Subject: [PATCH] drop ack Through to last packet if Number of NACKs exceeds 255 --- libi2pd/Streaming.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libi2pd/Streaming.cpp b/libi2pd/Streaming.cpp index ab4b6e48..eeff2767 100644 --- a/libi2pd/Streaming.cpp +++ b/libi2pd/Streaming.cpp @@ -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++)