mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-09 23:57:52 +00:00
resend message immediately if NACK recieved
This commit is contained in:
parent
7fbe2754a4
commit
9d273acd42
@ -230,6 +230,7 @@ namespace stream
|
||||
if (nacked)
|
||||
{
|
||||
LogPrint (eLogDebug, "Packet ", seqn, " NACK");
|
||||
SendPackets (std::vector<Packet *> { *it });
|
||||
it++;
|
||||
continue;
|
||||
}
|
||||
@ -399,7 +400,7 @@ namespace stream
|
||||
auto seqn = it->GetSeqn ();
|
||||
if (numNacks + (seqn - nextSeqn) >= 256)
|
||||
{
|
||||
LogPrint (eLogError, "Number of NACKs exceeds 256");
|
||||
LogPrint (eLogError, "Number of NACKs exceeds 256. seqn=", seqn, " nextSeqn=", nextSeqn);
|
||||
htobe32buf (packet + 12, nextSeqn); // change ack Through
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user