mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-18 17:27:50 -05:00
fix(sfs): let the login burst through the send backlog limit
Every custom colour and item def is written at login before the client reads; at 20000 colours and 5000 clothing that is ~4.2 MB, over the 4 MB backlog limit, so every login was cut off right after it succeeded. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
95946c5b02
commit
94b8de801e
1 file changed
+4
-1
+4
-1
@@ -18,7 +18,10 @@ const limits = require("./limits.js");
|
||||
const POLICY = '<cross-domain-policy><allow-access-from domain="*" to-ports="*"/></cross-domain-policy>';
|
||||
const MAX_MESSAGE = 64 * 1024;
|
||||
const RATE_WINDOW_MS = 10000;
|
||||
const MAX_BACKLOG = 4 * 1024 * 1024;
|
||||
// above what login writes in one go before the client reads any of it: every
|
||||
// custom colour and custom item def (~4.2 MB on 2026-10-19, at the caps of
|
||||
// 20000 colours and 5000 clothing), which a 4 MB limit cut off for everyone.
|
||||
const MAX_BACKLOG = 16 * 1024 * 1024;
|
||||
const MAX_ERRORS_PER_WINDOW = 20;
|
||||
// the Create Account screens are done in a few minutes; a guest connection
|
||||
// does not get to stay for as long as it keeps sending something.
|
||||
|
||||
Reference in new issue
Block a user