default RPC limit (#4838)

This commit is contained in:
DoTheBestToGetTheBest
2023-09-28 08:12:12 -07:00
committed by GitHub
parent 216effd016
commit 3ef0364e42
2 changed files with 3 additions and 2 deletions

View File

@ -24,6 +24,7 @@ use reth_rpc::{
},
JwtError, JwtSecret,
};
use reth_rpc_builder::{
auth::{AuthServerConfig, AuthServerHandle},
constants,
@ -50,7 +51,7 @@ pub(crate) const RPC_DEFAULT_MAX_REQUEST_SIZE_MB: u32 = 15;
/// This is only relevant for very large trace responses.
pub(crate) const RPC_DEFAULT_MAX_RESPONSE_SIZE_MB: u32 = 115;
/// Default number of incoming connections.
pub(crate) const RPC_DEFAULT_MAX_CONNECTIONS: u32 = 100;
pub(crate) const RPC_DEFAULT_MAX_CONNECTIONS: u32 = 500;
/// Parameters for configuring the rpc more granularity via CLI
#[derive(Debug, Args)]

View File

@ -196,7 +196,7 @@ RPC:
--rpc-max-connections <COUNT>
Maximum number of RPC server connections
[default: 100]
[default: 500]
--rpc-max-tracing-requests <COUNT>
Maximum number of concurrent tracing requests