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:
parent
1723562748
commit
ab2cc084d6
1 changed files with 3 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue