r4218 in private:

Put dead transaction checks into 2 groups - 30-seconds and 180-seconds.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4495 19bc5d8c-e614-43d4-8b26-e1612bc8e597
This commit is contained in:
Kurtis Heimerl
2012-11-22 05:28:36 +00:00
parent f9b7ce9e55
commit 4acfd35688

View File

@@ -239,13 +239,19 @@ bool TransactionEntry::dead() const
{
ScopedLock lock(mLock);
// Don't remove anything less than 3 minutes old.
if (stateAge() < 180*1000) return false;
// 30-second tests
if (stateAge() < 30*1000) return false;
// Failed?
if (mSIP.state()==SIP::Fail) return true;
// Null state?
if (mGSMState==GSM::NullState) return true;
// Stuck in proceeding?
if (mSIP.state()==SIP::Proceeding) return true;
// SIP cancelled?
if (mSIP.state()==SIP::Canceled) return true;
// 180-second tests
if (stateAge() < 180*1000) return false;
// Paging timed out?
if (mGSMState==GSM::Paging) {