mirror of
https://github.com/bdnugget/rs-sdk.git
synced 2026-11-07 09:07:30 +00:00
chore(engine): halve default per-IP player cap to 200
MAX_PLAYERS_PER_IP still overrides; this only lowers the default memory backstop introduced after the 2026-07-21 swarm OOM. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
afd498e293
commit
2f8d26a40b
1 file changed
+1
-1
@@ -135,7 +135,7 @@ class World {
|
||||
|
||||
// concurrent players allowed per source IP. A 1100-account swarm from two IPs OOM'd
|
||||
// the 4GB prod box on 2026-07-21; the engine otherwise accepts up to 2048 players.
|
||||
private static readonly PLAYER_MAX_PER_IP: number = Number(process.env.MAX_PLAYERS_PER_IP ?? 400);
|
||||
private static readonly PLAYER_MAX_PER_IP: number = Number(process.env.MAX_PLAYERS_PER_IP ?? 200);
|
||||
|
||||
private static readonly PLAYER_SLOT_AUDITRATE: number = 100; // 30s at 300ms ticks
|
||||
|
||||
|
||||
Reference in new issue
Block a user