From a1ec919f5b75508f060d38ef3359a8091afeacf4 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Wed, 5 Sep 2018 17:44:05 +0200 Subject: [PATCH] Raise the message size for anonymous client and pki request calls to 1MB If one sends the full certificate chain, this previous limit of 64KB could be hit. --- lib/remote/jsonrpcconnection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/remote/jsonrpcconnection.cpp b/lib/remote/jsonrpcconnection.cpp index 0022d5072..3733cdb45 100644 --- a/lib/remote/jsonrpcconnection.cpp +++ b/lib/remote/jsonrpcconnection.cpp @@ -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 */ -- 2.40.0