Skip to content

Commit

Permalink
chore: bump engine server size limits (#3308)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Jun 21, 2023
1 parent a4a15ab commit 938b979
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions crates/rpc/rpc-builder/src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,13 @@ impl AuthServerConfigBuilder {
secret: self.secret,
server_config: self.server_config.unwrap_or_else(|| {
ServerBuilder::new()
// allows for 300mb responses (for large eth_getLogs deposit logs)
.max_response_body_size(300 * 1024 * 1024)
// This needs to large enough to handle large eth_getLogs responses and maximum
// payload bodies limit for `engine_getPayloadBodiesByRangeV`
// ~750MB per response should be enough
.max_response_body_size(750 * 1024 * 1024)
// 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)
.set_id_provider(EthSubscriptionIdProvider::default())
}),
}
Expand Down

0 comments on commit 938b979

Please sign in to comment.