mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 06:34:42 +02:00
Merge pull request #10332 from Icinga/do-not-close-connection-in-request-cert-handler
Don't abruptly close anonymous connections
This commit is contained in:
commit
21c9ad5323
@ -286,14 +286,6 @@ 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