mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-08-28 11:44:16 +00:00
drop packet if window is full on server side
This commit is contained in:
@@ -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 ();
|
||||
|
||||
Reference in New Issue
Block a user