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:
parent
4992629f20
commit
74f707ee01
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue