From 56125366e9d8e526f64b43f661c6c5c3b2fb6f8a Mon Sep 17 00:00:00 2001 From: Giulio Grassi Date: Thu, 15 Oct 2020 16:32:28 +0200 Subject: [HICN-647] Freezing CWND if the production rate of the producer is equal to 0 Signed-off-by: Giulio Grassi Change-Id: Ie98870659463fae060ea135ea3a6ce40be905ad0 --- libtransport/src/protocols/rtc.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libtransport/src/protocols/rtc.cc b/libtransport/src/protocols/rtc.cc index b1502f51f..a01b8daa5 100644 --- a/libtransport/src/protocols/rtc.cc +++ b/libtransport/src/protocols/rtc.cc @@ -348,6 +348,8 @@ void RTCTransportProtocol::computeMaxWindow(uint32_t productionRate, void RTCTransportProtocol::updateWindow() { if (currentState_ == HICN_RTC_SYNC_STATE) return; + if (estimatedBw_ == 0) return; + if (currentCWin_ < maxCWin_ * 0.9) { currentCWin_ = min(maxCWin_, (uint32_t)(currentCWin_ * HICN_WIN_INCREASE_FACTOR)); -- cgit 1.2.3-korg