aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/src/protocols
diff options
context:
space:
mode:
authorMichele Papalini <micpapal@cisco.com>2020-10-20 09:05:56 +0000
committerGerrit Code Review <gerrit@fd.io>2020-10-20 09:05:56 +0000
commitdd89047e434afe4c79e6771f0a50b5ae1e08798e (patch)
tree46fa885ddf39e43edb5119e4ee3415bc027fc401 /libtransport/src/protocols
parent56125366e9d8e526f64b43f661c6c5c3b2fb6f8a (diff)
parente8b709a3c4537c7e71c71575e4835fa761c08d46 (diff)
Merge "[HICN-648] Optionally reset RAAQM window in a per-session basis"
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() {