Commit d7c05809 authored by aligungr's avatar aligungr

RLS developments

parent 5e2120d5
......@@ -208,16 +208,21 @@ void RlsControlTask::onAckControlTimerExpired()
{
int64_t current = utils::CurrentTimeMillis();
std::vector<uint32_t> transmissionFailureIds;
std::vector<rls::PduInfo> transmissionFailures;
for (auto &pdu : m_pduMap)
{
auto delta = current - pdu.second.sentTime;
if (delta > MAX_PDU_TTL)
{
transmissionFailureIds.push_back(pdu.first);
transmissionFailures.push_back(std::move(pdu.second));
}
}
m_pduMap.clear();
for (auto id : transmissionFailureIds)
m_pduMap.erase(id);
if (!transmissionFailures.empty())
{
......
......@@ -208,16 +208,21 @@ void RlsControlTask::onAckControlTimerExpired()
{
int64_t current = utils::CurrentTimeMillis();
std::vector<uint32_t> transmissionFailureIds;
std::vector<rls::PduInfo> transmissionFailures;
for (auto &pdu : m_pduMap)
{
auto delta = current - pdu.second.sentTime;
if (delta > MAX_PDU_TTL)
{
transmissionFailureIds.push_back(pdu.first);
transmissionFailures.push_back(std::move(pdu.second));
}
}
m_pduMap.clear();
for (auto id : transmissionFailureIds)
m_pduMap.erase(id);
if (!transmissionFailures.empty())
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment