diff options
| author | Lee *!* Clagett <code@leeclagett.com> | 2025-01-21 09:56:52 -0500 |
|---|---|---|
| committer | Lee *!* Clagett <code@leeclagett.com> | 2025-02-14 00:21:05 -0500 |
| commit | 13ff355cf6081776fd7379080c17246e35c1236d (patch) | |
| tree | 7efc3ffd2c8288857d428e1eaf5d9615f77b0900 /src/cryptonote_config.h | |
| parent | 89fa3ed68ae1a21e71a35ad4c21afaa2baae1987 (diff) | |
| download | monzero-core-13ff355cf6081776fd7379080c17246e35c1236d.tar.gz monzero-core-13ff355cf6081776fd7379080c17246e35c1236d.tar.xz monzero-core-13ff355cf6081776fd7379080c17246e35c1236d.zip | |
Set response limits on http server connections
Diffstat (limited to 'src/cryptonote_config.h')
| -rw-r--r-- | src/cryptonote_config.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cryptonote_config.h b/src/cryptonote_config.h index d69556acd..82891b9de 100644 --- a/src/cryptonote_config.h +++ b/src/cryptonote_config.h @@ -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 |
