From fb3e2a7531099857d19dba2f244fb7d0ca6b828d Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Thu, 16 May 2019 19:51:16 +0200 Subject: [HICN-199] Fix retransmissions when there is no space left in the window. Change-Id: Id1f6d61fd316ec2ef6f1fc0c6b758e79275cfae6 Signed-off-by: Mauro Sardara --- libtransport/src/hicn/transport/protocols/raaqm.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libtransport/src') diff --git a/libtransport/src/hicn/transport/protocols/raaqm.cc b/libtransport/src/hicn/transport/protocols/raaqm.cc index 7f0310e7c..8960e08fa 100644 --- a/libtransport/src/hicn/transport/protocols/raaqm.cc +++ b/libtransport/src/hicn/transport/protocols/raaqm.cc @@ -453,6 +453,14 @@ void RaaqmTransportProtocol::scheduleNextInterests() { return; } + if (TRANSPORT_EXPECT_FALSE(interests_in_flight_ >= current_window_size_ && + interest_to_retransmit_.size() > 0)) { + // send at least one interest if there are retransmissions to perform and + // there is no space left in the window + sendInterest(std::move(interest_to_retransmit_.front())); + interest_to_retransmit_.pop(); + } + uint32_t index = IndexManager::invalid_index; // Send the interest needed for filling the window while (interests_in_flight_ < current_window_size_) { -- cgit 1.2.3-korg