From: Christian Herdtweck Date: Thu, 28 May 2015 12:37:23 +0000 (+0200) Subject: made congestion/offline behaviour more stable: do no declare online right after going... X-Git-Url: http://developer.intra2net.com/git/?p=pingcheck;a=commitdiff_plain;h=e5029552e63ce8948aa931684693b841a9b3f9d2 made congestion/offline behaviour more stable: do no declare online right after going offline --- diff --git a/src/host/hoststatus.cpp b/src/host/hoststatus.cpp index 546fab7..401051c 100644 --- a/src/host/hoststatus.cpp +++ b/src/host/hoststatus.cpp @@ -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";