mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-29 16:44:29 +02:00
cluster: Fix another reconnect bug.
This commit is contained in:
parent
63941c5f40
commit
a9b7cfb777
@ -411,6 +411,8 @@ void ClusterComponent::NewClientHandler(const Socket::Ptr& client, TlsRole role)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
endpoint->SetSeen(Utility::GetTime());
|
||||||
|
|
||||||
Dictionary::Ptr config = boost::make_shared<Dictionary>();
|
Dictionary::Ptr config = boost::make_shared<Dictionary>();
|
||||||
Array::Ptr configFiles = endpoint->GetConfigFiles();
|
Array::Ptr configFiles = endpoint->GetConfigFiles();
|
||||||
|
|
||||||
@ -469,7 +471,7 @@ void ClusterComponent::ClusterTimerHandler(void)
|
|||||||
ObjectLock olock(this);
|
ObjectLock olock(this);
|
||||||
/* check if we've recently seen heartbeat messages from our peers */
|
/* check if we've recently seen heartbeat messages from our peers */
|
||||||
BOOST_FOREACH(const Endpoint::Ptr& endpoint, DynamicType::GetObjects<Endpoint>()) {
|
BOOST_FOREACH(const Endpoint::Ptr& endpoint, DynamicType::GetObjects<Endpoint>()) {
|
||||||
if (!endpoint->IsConnected() || endpoint->GetSeen() > Utility::GetTime() - 60)
|
if (endpoint->GetSeen() > Utility::GetTime() - 60)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
Stream::Ptr client = endpoint->GetClient();
|
Stream::Ptr client = endpoint->GetClient();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user