chore: explicitly set max allowed connections for auth server (#4067)

This commit is contained in:
Matthias Seitz
2023-08-04 22:00:41 +02:00
committed by GitHub
parent 443383b307
commit df94dba14b

View File

@ -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)