drop packet if window is full on server side

This commit is contained in:
orignal
2025-11-25 20:43:35 -05:00
parent aeda3bc006
commit 162e70a9ea
+6
View File
@@ -240,6 +240,12 @@ namespace client
{
if(!ecode)
{
if (!m_UnackedDatagrams.empty () && m_NextSendPacketNum > m_UnackedDatagrams.front ().first + I2P_UDP_MAX_NUM_UNACKED_DATAGRAMS)
{
// window is full, drop packet
Receive ();
return;
}
LogPrint(eLogDebug, "UDPSession: Forward ", len, "B from ", FromEndpoint);
auto ts = i2p::util::GetMillisecondsSinceEpoch();
auto session = GetDatagramSession ();