From df94dba14b039edc0d666eb881191e692893ba20 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 4 Aug 2023 22:00:41 +0200 Subject: [PATCH] chore: explicitly set max allowed connections for auth server (#4067) --- crates/rpc/rpc-builder/src/auth.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/rpc/rpc-builder/src/auth.rs b/crates/rpc/rpc-builder/src/auth.rs index 95e64b8fbf..f30b29ee35 100644 --- a/crates/rpc/rpc-builder/src/auth.rs +++ b/crates/rpc/rpc-builder/src/auth.rs @@ -215,6 +215,11 @@ impl AuthServerConfigBuilder { // payload bodies limit for `engine_getPayloadBodiesByRangeV` // ~750MB per response should be enough .max_response_body_size(750 * 1024 * 1024) + // Connections to this server are always authenticated, hence this only affects + // connections from the CL or any other client that uses JWT, this should be + // more than enough so that the CL (or multiple CL nodes) will never get rate + // limited + .max_connections(500) // bump the default request size slightly, there aren't any methods exposed with // dynamic request params that can exceed this .max_request_body_size(25 * 1024 * 1024)