cleaned up disconnect timer logic

This commit is contained in:
Jeff Hill
2000-06-15 01:23:56 +00:00
parent b52f9f084d
commit dec79926e5
6 changed files with 119 additions and 141 deletions

View File

@@ -478,21 +478,8 @@ void cac::beaconNotify ( const inetAddrID &addr )
* look for it in the hash table
*/
pBHE = this->lookupBeaconInetAddr ( addr );
if (pBHE) {
netChange = pBHE->updateBeaconPeriod (this->programBeginTime);
/*
* update state of health for active virtual circuits
* (only if we are not suspicious about past beacon changes
* until the next echo reply)
*/
tcpiiu *piiu = pBHE->getIIU ();
if ( piiu ) {
if ( ! piiu->beaconAnomaly ) {
piiu->rescheduleRecvTimer (); // reset connection activity watchdog
}
}
if ( pBHE ) {
netChange = pBHE->updateBeaconPeriod ( this->programBeginTime );
}
else {
/*
@@ -503,7 +490,7 @@ void cac::beaconNotify ( const inetAddrID &addr )
* shortly after the program started up)
*/
netChange = FALSE;
this->createBeaconHashEntry (addr, osiTime::getCurrent () );
this->createBeaconHashEntry ( addr, osiTime::getCurrent () );
}
if ( ! netChange ) {