Skip to content

Commit

Permalink
Added rpc-http-max-request-content-length (#1363)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
AnmolSirola and alexandratran authored Jul 18, 2023
1 parent bf0bff1 commit d1f735f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions docs/public-networks/reference/cli/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

<!--tabs-->

# Syntax

```bash
--rpc-http-max-request-content-length=<LONG>
```

# 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
```

<!--/tabs-->

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`

<!--tabs-->
Expand Down

0 comments on commit d1f735f

Please sign in to comment.