From ab2cc084d68d2abbf9933c613d154308214b8d0a Mon Sep 17 00:00:00 2001 From: birydrad <> Date: Mon, 9 Sep 2024 18:35:26 +0200 Subject: [PATCH] rldp2: bugfix - do not estimate speed while nothing is sent --- rldp2/RldpConnection.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rldp2/RldpConnection.cpp b/rldp2/RldpConnection.cpp index c6f96728..47506178 100644 --- a/rldp2/RldpConnection.cpp +++ b/rldp2/RldpConnection.cpp @@ -170,6 +170,9 @@ td::Timestamp RldpConnection::run(ConnectionCallback &callback) { if (in_flight_count_ > congestion_window_) { bdw_stats_.on_pause(now); } + if (in_flight_count_ == 0) { + bdw_stats_.on_pause(now); + } for (auto &inbound : inbound_transfers_) { alarm_timestamp.relax(run(inbound.first, inbound.second));