mirror of
https://github.com/monero-project/monero.git
synced 2025-08-18 11:57:54 -04:00
Set response limits on http server connections
This commit is contained in:
parent
915c5dc1d9
commit
ec74ff4a3d
13 changed files with 423 additions and 27 deletions
|
@ -127,6 +127,10 @@
|
|||
|
||||
#define COMMAND_RPC_GET_BLOCKS_FAST_MAX_BLOCK_COUNT 1000
|
||||
#define COMMAND_RPC_GET_BLOCKS_FAST_MAX_TX_COUNT 20000
|
||||
#define DEFAULT_RPC_MAX_CONNECTIONS_PER_PUBLIC_IP 3
|
||||
#define DEFAULT_RPC_MAX_CONNECTIONS_PER_PRIVATE_IP 25
|
||||
#define DEFAULT_RPC_MAX_CONNECTIONS 100
|
||||
#define DEFAULT_RPC_SOFT_LIMIT_SIZE 25 * 1024 * 1024 // 25 MiB
|
||||
#define MAX_RPC_CONTENT_LENGTH 1048576 // 1 MB
|
||||
|
||||
#define P2P_LOCAL_WHITE_PEERLIST_LIMIT 1000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue