From: Gunnar Beutner Date: Tue, 3 Sep 2013 15:04:13 +0000 (+0200) Subject: Revert "cluster: Disconnect timed out endpoints." X-Git-Tag: v0.0.3~604 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0cab8827311db265a8458236ef97b3f9640e9ca8;p=icinga2 Revert "cluster: Disconnect timed out endpoints." This reverts commit 1f74139ab4667b1dd71dd35d40097caa447069fa. --- diff --git a/components/cluster/clustercomponent.cpp b/components/cluster/clustercomponent.cpp index 8cbb3b039..b4f9ac166 100644 --- a/components/cluster/clustercomponent.cpp +++ b/components/cluster/clustercomponent.cpp @@ -410,17 +410,6 @@ void ClusterComponent::ClusterTimerHandler(void) RelayMessage(Endpoint::Ptr(), message, false); - /* check if we've recently seen heartbeat messages from our peers */ - BOOST_FOREACH(const Endpoint::Ptr& endpoint, DynamicType::GetObjects()) { - if (!endpoint->IsConnected() || endpoint->GetSeen() > Utility::GetTime() - 60) - continue; - - Stream::Ptr client = endpoint->GetClient(); - - if (client) - client->Close(); - } - Array::Ptr peers = GetPeers(); if (!peers)