]> granicus.if.org Git - icinga2/commitdiff
Revert "cluster: Disconnect timed out endpoints."
authorGunnar Beutner <gunnar@beutner.name>
Tue, 3 Sep 2013 15:04:13 +0000 (17:04 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Tue, 3 Sep 2013 15:04:13 +0000 (17:04 +0200)
This reverts commit 1f74139ab4667b1dd71dd35d40097caa447069fa.

components/cluster/clustercomponent.cpp

index 8cbb3b039a9e23647bafb6b46627a645929762b8..b4f9ac166e3bcb43e6c08726b9d6640708f3ec71 100644 (file)
@@ -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<Endpoint>()) {
-               if (!endpoint->IsConnected() || endpoint->GetSeen() > Utility::GetTime() - 60)
-                       continue;
-
-               Stream::Ptr client = endpoint->GetClient();
-
-               if (client)
-                       client->Close();
-       }
-
        Array::Ptr peers = GetPeers();
 
        if (!peers)