aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/src
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-05-16 19:51:16 +0200
committerMauro Sardara <msardara@cisco.com>2019-05-16 19:51:16 +0200
commitfb3e2a7531099857d19dba2f244fb7d0ca6b828d (patch)
treea0627990355686bcefffa89d7be41f3e442b1a45 /libtransport/src
parentdb8d063677b42c0ec8191728e55d1d5efef80822 (diff)
[HICN-199] Fix retransmissions when there is no space left in the window.
Change-Id: Id1f6d61fd316ec2ef6f1fc0c6b758e79275cfae6 Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'libtransport/src')
-rw-r--r--libtransport/src/hicn/transport/protocols/raaqm.cc8
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_) {