RPC: Limit request payload size to 50kB (#12287)

(cherry picked from commit 32dcce0ac1)

Co-authored-by: Trent Nelson <trent@solana.com>
This commit is contained in:
mergify[bot]
2020-09-16 21:26:31 +00:00
committed by GitHub
parent 19eb73d645
commit f00c504555
3 changed files with 5 additions and 1 deletions

View File

@@ -353,6 +353,7 @@ impl JsonRpcService {
]))
.cors_max_age(86400)
.request_middleware(request_middleware)
.max_request_body_size(MAX_REQUEST_PAYLOAD_SIZE)
.start_http(&rpc_addr);
if let Err(e) = server {