Browse Source

drop window if remote lease changes

pull/2095/head
orignal 2 months ago
parent
commit
d169b422da
  1. 10
      libi2pd/Streaming.cpp

10
libi2pd/Streaming.cpp

@ -1418,6 +1418,16 @@ namespace stream
LogPrint (eLogWarning, "Streaming: Remote LeaseSet not found"); LogPrint (eLogWarning, "Streaming: Remote LeaseSet not found");
m_CurrentRemoteLease = nullptr; 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 () void Stream::ResetRoutingPath ()

Loading…
Cancel
Save