diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-16 20:55:38 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-19 15:03:59 +0000 |
| commit | 16833501a1004a5a661a729e4fd2dbcbeaecd1d5 (patch) | |
| tree | 96117ff6ba6c8d8d1d8daab3afe3f43a04b88e24 /.env.example | |
| parent | 5897e4bccd41f1a9ebb01a11280cea929c93d2c0 (diff) | |
config: increase max_connections default from 2000 to 4096
Increases connection limit across all configuration sources:
- src/config.rs: default_value_t = 4096
- docs/reference/configuration.md: updated default and examples
- nix/module.nix: maxConnections default = 4096
- .env.example: updated default and comment
This allows the relay to handle more concurrent connections and reduces
the likelihood of connection exhaustion under normal load. The previous
limit of 2000 was too conservative for production deployments.
Diffstat (limited to '.env.example')
| -rw-r--r-- | .env.example | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.env.example b/.env.example index 953ae93..a19a07d 100644 --- a/.env.example +++ b/.env.example | |||
| @@ -286,5 +286,5 @@ | |||
| 286 | # Maximum total connections to the relay | 286 | # Maximum total connections to the relay |
| 287 | # Prevents connection exhaustion DoS attacks | 287 | # Prevents connection exhaustion DoS attacks |
| 288 | # CLI: --max-connections <count> | 288 | # CLI: --max-connections <count> |
| 289 | # Default: 500 | 289 | # Default: 4096 |
| 290 | # NGIT_MAX_CONNECTIONS=500 \ No newline at end of file | 290 | # NGIT_MAX_CONNECTIONS=4096 \ No newline at end of file |