7e2d5b8dc03872900e91699bbd5ad952b6182c98
Conn now carries what DESIGN 6/6.4/6.5 need per connection, all under the one registry lock: the outgoing n counter (starts at 1, server frames only), the intent token bucket, the malformed-flood window, the player's named flag and the last Pong. None of it is shared, so the n counter is not a global side channel (H25). activate/revokePlayer now hand back the doomed Conn values instead of raw sockets: the caller still has the frame count, so the final closing frame carries the right n before the close. Tests cover per-connection counters, the bucket and the flood window in isolation, and that a snapshot survives the lock.
Description
No description provided
9.2 MiB
Languages
JavaScript
38.4%
Nim
38.3%
TypeScript
20.9%
Shell
1.9%
CSS
0.5%