mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
default RPC limit (#4838)
This commit is contained in:
committed by
GitHub
parent
216effd016
commit
3ef0364e42
@ -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)]
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user