From e5029552e63ce8948aa931684693b841a9b3f9d2 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Thu, 28 May 2015 14:37:23 +0200 Subject: [PATCH] made congestion/offline behaviour more stable: do no declare online right after going offline --- src/host/hoststatus.cpp | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) 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"; -- 1.7.1