mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-29 08:34:20 +02:00
Merge pull request #8230 from Icinga/bugfix/open-connections-2116
Fix open connections when agent waits for CA approval
This commit is contained in:
commit
198090d072
@ -243,6 +243,14 @@ delayed_request:
|
|||||||
Log(LogInformation, "JsonRpcConnection")
|
Log(LogInformation, "JsonRpcConnection")
|
||||||
<< "Certificate request for CN '" << cn << "' is pending. Waiting for approval.";
|
<< "Certificate request for CN '" << cn << "' is pending. Waiting for approval.";
|
||||||
|
|
||||||
|
if (origin) {
|
||||||
|
auto client (origin->FromClient);
|
||||||
|
|
||||||
|
if (client && !client->GetEndpoint()) {
|
||||||
|
client->Disconnect();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user