go-ethereum/node
Rafael Matias 7c1959b306
rpc: add --rpc.http-body-limit flag for HTTP request body size (#35224)
The HTTP JSON-RPC server caps request bodies at a hardcoded 5 MB
(`defaultBodyLimit`), with no way to raise it. EEST bloatnet depth
benchmarks post worst-case batch requests larger than that during
fill-stateful, which the server rejects with `413 Request Entity Too
Large`.

This adds `node.Config.HTTPBodyLimit` (default 5 MB), wired through to
the HTTP/WS server config, and exposes it via `--rpc.http-body-limit`
(value in **megabytes**, default 5). Default behaviour is unchanged.
2026-07-06 11:30:32 +02:00
..
api.go node: fix vhosts for adminAPI (#32488) 2025-08-25 09:52:54 +08:00
api_test.go build: update to golangci-lint 1.61.0 (#30587) 2024-10-14 19:25:22 +02:00
config.go rpc: add --rpc.http-body-limit flag for HTTP request body size (#35224) 2026-07-06 11:30:32 +02:00
config_test.go build: replace tenv linter with usetesting (#31172) 2025-02-21 13:36:18 +01:00
database.go ethdb/pebble, cmd, node: add pebble v2 support (#34009) 2026-06-22 12:50:49 +02:00
defaults.go rpc: add --rpc.http-body-limit flag for HTTP request body size (#35224) 2026-07-06 11:30:32 +02:00
doc.go build: upgrade to go 1.19 (#25726) 2022-09-10 13:25:40 +02:00
endpoints.go node, rpc: add ReadHeaderTimeout config option (#25338) 2022-08-03 16:50:12 +02:00
errors.go node: remove unused err var (#32398) 2025-08-13 15:08:23 +08:00
jwt_auth.go node, rpc: add JWT auth support in client (#24911) 2022-09-02 17:40:41 +02:00
jwt_handler.go node: match auth-schema case insensitively (#35022) 2026-07-02 18:18:58 +02:00
lifecycle.go node: refactor package node (#21105) 2020-08-03 19:40:46 +02:00
node.go rpc: add --rpc.http-body-limit flag for HTTP request body size (#35224) 2026-07-06 11:30:32 +02:00
node_auth_test.go all: replace path.Join with filepath.Join (#29479) 2024-04-08 12:29:49 +03:00
node_example_test.go build: upgrade to go 1.19 (#25726) 2022-09-10 13:25:40 +02:00
node_test.go build: update to golangci-lint 1.61.0 (#30587) 2024-10-14 19:25:22 +02:00
rpcstack.go node: fix wrong status code in ws (#35111) 2026-06-10 08:30:52 +02:00
rpcstack_test.go node: normalize HTTP vhost host matching (#34693) 2026-05-18 10:37:12 +08:00
utils_test.go all: remove version field from rpc.API 2022-06-27 12:39:46 +02:00