Skip to content

Commit

Permalink
chore: explicitly set max allowed connections for auth server (paradi…
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Aug 4, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 443383b commit df94dba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/rpc/rpc-builder/src/auth.rs
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit df94dba

Please sign in to comment.