M3 limits #15

Closed
opened 2026-11-14 19:47:12 +01:00 by SirStone · 1 comment
Owner

Part of #2

Question

Which numbers bound the server in M3: max WS frame size, intent rate limit, connection caps (per player and total)? The protocol test group in the M3 accept (What M3 done means) needs them. Refs DESIGN §6.4, T10, docs/research/m3-test-tools.md (mummy maxMessageLen default 64 KB).

  • Suggested default: start from mummy's 64 KB frame cap; pick rate and caps in one owner session.
Part of #2 ## Question Which numbers bound the server in M3: max WS frame size, intent rate limit, connection caps (per player and total)? The protocol test group in the M3 accept (What M3 done means) needs them. Refs DESIGN §6.4, T10, docs/research/m3-test-tools.md (mummy maxMessageLen default 64 KB). - Suggested default: start from mummy's 64 KB frame cap; pick rate and caps in one owner session.
SirStone added the wayfinder:grilling label 2026-11-14 19:47:12 +01:00
SirStone added a new dependency 2026-11-14 19:47:14 +01:00
SirStone self-assigned this 2026-11-14 19:54:32 +01:00
Author
Owner

Resolved (owner-delegated, 2026-11-14). Recorded in docs/DESIGN.md, commit 2801fbc.

  1. Max inbound WS message: 64 KB = mummy 0.4.8 default maxMessageLen (inbound only, cumulative across fragments). On exceed, mummy closes TCP without a close frame (mummy.nim :658-660). No config. Outbound unaffected.
  2. Intent rate: token bucket per connection, 30/s sustained, burst 100, same for GM and players. Excess intents are rejected with error "rate limited". No rollback: each intent is atomic (accepted ones stay, rejected ones are never applied). The connection stays open. A normal client stays under it (drag ~20 Hz, 6.4). Reconciling refused optimistic edits is client behaviour, decided in M4.
  3. Connections per player: 4. A 5th connection from the same player closes that player's oldest connection.
  4. Total connections: 16 (1 GM + 6 players x ~2 devices + headroom). The 17th is refused. Replaces the PROPOSED cap of 8 (4.3).

Consequence: the M5 port of concurrency.mjs (6 walkers on one GM socket, ~200/s) must spread across connections (noted in 10.1).

Resolved (owner-delegated, 2026-11-14). Recorded in docs/DESIGN.md, commit 2801fbc. 1. Max inbound WS message: 64 KB = mummy 0.4.8 default `maxMessageLen` (inbound only, cumulative across fragments). On exceed, mummy closes TCP without a close frame (mummy.nim :658-660). No config. Outbound unaffected. 2. Intent rate: token bucket per connection, 30/s sustained, burst 100, same for GM and players. Excess intents are rejected with error "rate limited". No rollback: each intent is atomic (accepted ones stay, rejected ones are never applied). The connection stays open. A normal client stays under it (drag ~20 Hz, 6.4). Reconciling refused optimistic edits is client behaviour, decided in M4. 3. Connections per player: 4. A 5th connection from the same player closes that player's oldest connection. 4. Total connections: 16 (1 GM + 6 players x ~2 devices + headroom). The 17th is refused. Replaces the PROPOSED cap of 8 (4.3). Consequence: the M5 port of `concurrency.mjs` (6 walkers on one GM socket, ~200/s) must spread across connections (noted in 10.1).
Sign in to join this conversation.