mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Revert "cluster: Disconnect timed out endpoints."
This reverts commit 1f74139ab4667b1dd71dd35d40097caa447069fa.
This commit is contained in:
parent
1f74139ab4
commit
0cab882731
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user