diff options
author | Alberto Compagno <acompagn+fdio@cisco.com> | 2019-05-16 18:09:47 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2019-05-16 18:09:47 +0000 |
commit | c4ead399d98d0f9084d6be1c3a44e27e8158b26a (patch) | |
tree | 9d8aff23d7e735e9bf6a03b225a05123661633a9 /libtransport/src | |
parent | 41ed041613107ae6f1bf9cae5147cfdc71a1ba54 (diff) | |
parent | fb3e2a7531099857d19dba2f244fb7d0ca6b828d (diff) |
Merge "[HICN-199] Fix retransmissions when there is no space left in the window."
Diffstat (limited to 'libtransport/src')
-rw-r--r-- | libtransport/src/hicn/transport/protocols/raaqm.cc | 8 |
1 files changed, 8 insertions, 0 deletions
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_) { |