From d1f735fe1f0458bd006512027830a56975f847d0 Mon Sep 17 00:00:00 2001 From: Anmol Sirola <95535448+AnmolSirola@users.noreply.github.com> Date: Tue, 18 Jul 2023 20:21:50 +0530 Subject: [PATCH] Added rpc-http-max-request-content-length (#1363) * Added rpc-http-max-request-content-length Signed-off-by: Anmol Sirola <95535448+AnmolSirola@users.noreply.github.com> * Apply suggestions from code review Signed-off-by: Alexandra Tran Carrillo <12214231+alexandratran@users.noreply.github.com> * Update docs/public-networks/reference/cli/options.md Signed-off-by: Alexandra Tran Carrillo <12214231+alexandratran@users.noreply.github.com> --------- Signed-off-by: Anmol Sirola <95535448+AnmolSirola@users.noreply.github.com> Signed-off-by: Alexandra Tran Carrillo <12214231+alexandratran@users.noreply.github.com> Co-authored-by: Alexandra Tran Carrillo <12214231+alexandratran@users.noreply.github.com> --- docs/public-networks/reference/cli/options.md | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/docs/public-networks/reference/cli/options.md b/docs/public-networks/reference/cli/options.md index d039d13f418..62c394694d9 100644 --- a/docs/public-networks/reference/cli/options.md +++ b/docs/public-networks/reference/cli/options.md @@ -2756,6 +2756,40 @@ rpc-http-max-active-connections=100 The maximum number of allowed HTTP JSON-RPC connections. Once this limit is reached, incoming connections are rejected. The default is 80. +### `rpc-http-max-request-content-length` + + + +# Syntax + +```bash +--rpc-http-max-request-content-length= +``` + +# Example + +```bash +--rpc-http-max-request-content-length=2097152 +``` + +# Environment variable + +```bash +BESU_RPC_HTTP_MAX_REQUEST_CONTENT_LENGTH=2097152 +``` + +# Configuration file + +```toml +rpc-http-max-request-content-length=2097152 +``` + + + +The maximum request content length. +Besu only accepts JSON-RPC API requests with a body size less than or equal to this value. +The default is 5242880 (5 MB). + ### `rpc-http-max-batch-size`