From d169b422da52c2a30f4c3f3761362da07564ff85 Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 19 Aug 2024 19:10:00 -0400 Subject: [PATCH] drop window if remote lease changes --- libi2pd/Streaming.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libi2pd/Streaming.cpp b/libi2pd/Streaming.cpp index 14598b91..8f6e567b 100644 --- a/libi2pd/Streaming.cpp +++ b/libi2pd/Streaming.cpp @@ -1418,6 +1418,16 @@ namespace stream LogPrint (eLogWarning, "Streaming: Remote LeaseSet not found"); m_CurrentRemoteLease = nullptr; } + // drop window to initial upon RemoteLease change + m_RTO = INITIAL_RTO; + m_WindowSize = INITIAL_WINDOW_SIZE; + m_LastWindowDropSize = 0; + m_WindowIncCounter = 0; + m_IsWinDropped = true; + m_IsFirstRttSample = true; + m_DropWindowDelayTime = 0; + m_IsFirstACK = true; + UpdatePacingTime (); } void Stream::ResetRoutingPath ()