mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
teminate session after 5 unacked resends
This commit is contained in:
parent
2f44d99a74
commit
bb6227281a
@ -325,7 +325,13 @@ namespace transport
|
||||
if (ts >= it->second->nextResendTime)
|
||||
{
|
||||
if (it->second->numResends > SSU2_MAX_NUM_RESENDS)
|
||||
it = m_SentPackets.erase (it);
|
||||
{
|
||||
LogPrint (eLogInfo, "SSU2: Packet was not Acked after ", it->second->numResends, " attempts. Terminate session");
|
||||
m_SentPackets.clear ();
|
||||
m_SendQueue.clear ();
|
||||
RequestTermination ();
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint32_t packetNum = SendData (it->second->payload, it->second->payloadSize);
|
||||
|
Loading…
Reference in New Issue
Block a user