made congestion/offline behaviour more stable: do no declare online right after going...
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 28 May 2015 12:37:23 +0000 (14:37 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 28 May 2015 12:37:23 +0000 (14:37 +0200)
src/host/hoststatus.cpp

index 546fab7..401051c 100644 (file)
@@ -242,6 +242,11 @@ void HostStatus::analyze_ping_statistics()
         GlobalLogger.debug() << log_prefix() << "notify down";
         LinkAnalyzer->notify_host_down( HostAddress );
     }
+    else if (exceeded_ping_congestion_limit() && !InBurstMode)
+        // only notify up if will not try burst mode next
+        // otherwise will continuously notify up and down if get timeouts
+        GlobalLogger.notice() << log_prefix() << "will not notify up because "
+            << " will go into burst mode next";
     else
     {
         GlobalLogger.debug() << log_prefix() << "notify up";