1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

rldp2: bugfix - do not estimate speed while nothing is sent

This commit is contained in:
birydrad 2024-09-09 18:35:26 +02:00
parent 1723562748
commit ab2cc084d6

View file

@ -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));