Skip to content

Commit

Permalink
[mrp] Keep existing active backoff on 2nd - Nth.
Browse files Browse the repository at this point in the history
  • Loading branch information
turon committed Mar 30, 2022
1 parent 946fd57 commit cd79d33
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/messaging/ReliableMessageMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,8 @@ void ReliableMessageMgr::ExecuteActions()
messageCounter, ChipLogValueExchange(&entry->ec.Get()), entry->sendCount);
// TODO(#15800): Choose active/idle timeout corresponding to the activity of exchanges of the session.
System::Clock::Timestamp backoff =
ReliableMessageMgr::GetBackoff(entry->ec->GetSessionHandle()->GetMRPConfig().mIdleRetransTimeout, entry->sendCount);
entry->nextRetransTime =
System::SystemClock().GetMonotonicTimestamp() + backoff;
ReliableMessageMgr::GetBackoff(entry->ec->GetSessionHandle()->GetMRPConfig().mActiveRetransTimeout, entry->sendCount);
entry->nextRetransTime = System::SystemClock().GetMonotonicTimestamp() + backoff;
SendFromRetransTable(entry);
// For test not using async IO loop, the entry may have been removed after send, do not use entry below

Expand Down

0 comments on commit cd79d33

Please sign in to comment.