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.
This commit is contained in:
Michael Friedrich 2018-09-05 17:44:05 +02:00
parent 1c2a59bf63
commit a1ec919f5b
1 changed files with 2 additions and 1 deletions

View 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 */