1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

only do single ack packets

This commit is contained in:
Jeff Becker 2021-02-13 14:46:23 -05:00
parent 4992629f20
commit 74f707ee01
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05

View file

@ -779,7 +779,9 @@ namespace llarp
const llarp_buffer_t buf(msg.m_Data);
m_Parent->HandleMessage(this, buf);
if (m_ReplayFilter.emplace(rxid, m_Parent->Now()).second)
m_SendMACKs.emplace(rxid);
{
EncryptAndSend(msg.ACKS());
}
m_RXMsgs.erase(rxid);
}
}
@ -831,7 +833,9 @@ namespace llarp
const llarp_buffer_t buf(msg.m_Data);
m_Parent->HandleMessage(this, buf);
if (m_ReplayFilter.emplace(itr->first, m_Parent->Now()).second)
m_SendMACKs.emplace(itr->first);
{
EncryptAndSend(msg.ACKS());
}
}
else
{