aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/src/protocols
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2020-10-20 10:41:47 +0200
committerMauro Sardara <msardara@cisco.com>2020-10-20 08:43:06 +0000
commite8b709a3c4537c7e71c71575e4835fa761c08d46 (patch)
treed0de591a23d723a622bb94cc6d725fe11aa4aa29 /libtransport/src/protocols
parent35cd93b3e940d74bd4eb01e0a8034cb8590d90fb (diff)
[HICN-648] Optionally reset RAAQM window in a per-session basis
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I6b431db78de2427251d6050dfaff38a741efd9bd
Diffstat (limited to 'libtransport/src/protocols')
-rw-r--r--libtransport/src/protocols/raaqm.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/libtransport/src/protocols/raaqm.cc b/libtransport/src/protocols/raaqm.cc
index 783d6194b..5023adf2e 100644
--- a/libtransport/src/protocols/raaqm.cc
+++ b/libtransport/src/protocols/raaqm.cc
@@ -116,6 +116,14 @@ void RaaqmTransportProtocol::reset() {
// Reset protocol variables
interests_in_flight_ = 0;
t0_ = utils::SteadyClock::now();
+
+ // Optionally reset congestion window
+ bool reset_window;
+ socket_->getSocketOption(RaaqmTransportOptions::PER_SESSION_CWINDOW_RESET,
+ reset_window);
+ if (reset_window) {
+ current_window_size_ = 1;
+ }
}
bool RaaqmTransportProtocol::verifyKeyPackets() {