go-ethereum/node
Delweng 386cba15b5
node: increase batch limits for auth rpc API (#27924)
This raises the JSON-RPC batch request limits significantly for the engine API endpoint.
The limits are now also hard-coded, so users won't get them wrong. I have chosen these limits:

    maximum batch items: 2000
    maximum batch response size: 250MB

While it would also be possible to disable batch limits completely for the engine API, 
I think having some limits is a good safety net against misbehaving CLs. Since this
 isn't configurable, we really want to ensure this limit will never become an issue in the
 CL/EL communication, so I set them quite high.

---------

Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: Felix Lange <fjl@twurst.com>
2023-08-16 15:26:49 +02:00
..
api_test.go graphql, node, rpc: improve HTTP write timeout handling (#25457) 2022-12-07 14:02:14 +01:00
api.go rpc: add limit for batch request items and response size (#26681) 2023-06-13 13:38:58 +02:00
config_test.go node: remove noop path.Join (#25475) 2022-08-04 10:42:03 +03:00
config.go node: fix listening on IPv6 address (#27628) (#27635) 2023-07-02 13:21:16 +02:00
defaults.go node: increase batch limits for auth rpc API (#27924) 2023-08-16 15:26:49 +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: refactor package node (#21105) 2020-08-03 19:40:46 +02: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: change JWT error status to 401 Unauthorized (#25629) 2022-08-30 15:25:02 +02:00
lifecycle.go node: refactor package node (#21105) 2020-08-03 19:40:46 +02:00
node_auth_test.go node, rpc: add JWT auth support in client (#24911) 2022-09-02 17:40:41 +02:00
node_example_test.go build: upgrade to go 1.19 (#25726) 2022-09-10 13:25:40 +02:00
node_test.go metrics/librato: ensure resp.body closed (#26969) 2023-03-27 07:44:41 -04:00
node.go node: increase batch limits for auth rpc API (#27924) 2023-08-16 15:26:49 +02:00
rpcstack_test.go rpc: add limit for batch request items and response size (#26681) 2023-06-13 13:38:58 +02:00
rpcstack.go node: fix listening on IPv6 address (#27628) (#27635) 2023-07-02 13:21:16 +02:00
utils_test.go all: remove version field from rpc.API 2022-06-27 12:39:46 +02:00