Unverified Commit f3fb0f64 authored by Ali Güngör's avatar Ali Güngör Committed by GitHub

Merge pull request #414 from namssob/master

Consecutive ps-release commands will make gnb crash
parents 0a0e559c 9a4dffaf
......@@ -135,12 +135,19 @@ void GtpTask::handleSessionRelease(int ueId, int psi)
return;
}
uint64_t sessionInd = MakeSessionResInd(ueId, psi);
// Remove all session information from rate limiter
m_rateLimiter->updateSessionUplinkLimit(sessionInd, 0);
m_rateLimiter->updateUeDownlinkLimit(ueId, 0);
if (m_pduSessions[sessionInd] == nullptr ) {
m_logger->err("PDU session resource could not be released, PSI downlink tunnel [%d] not found", psi);
return;
}
// And remove from PDU session table
uint32_t teid = m_pduSessions[sessionInd]->downTunnel.teid;
m_pduSessions.erase(sessionInd);
......
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