Bring some constants into RPC::Tuning.h.

This commit is contained in:
Tom Ritchford
2015-08-10 16:26:43 -04:00
committed by Edward Hennis
parent 4eb6020813
commit 849e1ce5f4
3 changed files with 22 additions and 12 deletions

View File

@@ -32,6 +32,7 @@
#include <ripple/resource/ResourceManager.h>
#include <ripple/resource/Fees.h>
#include <ripple/rpc/Coroutine.h>
#include <ripple/rpc/impl/Tuning.h>
#include <beast/crypto/base64.h>
#include <ripple/rpc/RPCHandler.h>
#include <beast/cxx14/algorithm.h> // <algorithm>
@@ -237,7 +238,7 @@ ServerHandlerImp::processRequest (
Json::Value jsonRPC;
{
Json::Reader reader;
if ((request.size () > 1000000) ||
if ((request.size () > RPC::Tuning::maxRequestSize) ||
! reader.parse (request, jsonRPC) ||
! jsonRPC ||
! jsonRPC.isObject ())