]> granicus.if.org Git - icinga2/commitdiff
Raise the message size for anonymous client and pki request calls to 1MB
authorMichael Friedrich <michael.friedrich@icinga.com>
Wed, 5 Sep 2018 15:44:05 +0000 (17:44 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Wed, 5 Sep 2018 15:44:05 +0000 (17:44 +0200)
If one sends the full certificate chain, this previous limit of 64KB
could be hit.

lib/remote/jsonrpcconnection.cpp

index 0022d5072efd9e241fb3ec2a204a04ce68b19633..3733cdb4526016d91499b336b6241ad4225cb3b4 100644 (file)
@@ -248,7 +248,8 @@ void JsonRpcConnection::MessageHandler(const String& jsonString)
 
 bool JsonRpcConnection::ProcessMessage()
 {
-       ssize_t maxMessageLength = 64 * 1024;
+       /* Limit for anonymous clients (signing requests and not configured endpoints. */
+       ssize_t maxMessageLength = 1024 * 1024;
 
        if (m_Endpoint)
                maxMessageLength = -1; /* no limit */