mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-22 08:02:24 +00:00
Three sites answered "frame payload exceeds MAX_FRAME". `MAX_FRAME` is a name only this side of the wire knows, so a peer -- or anyone reading a log after a frame was refused -- learns neither how big the frame was nor how big one may be. The control protocol's equivalent already reads "control frame of N bytes exceeds the M-byte limit"; the pane protocol had been left behind. Swept for the shape after the last commit, where a message printed a cap where a count belonged. Everything else in this class is already right: `local.rs` and `control.rs` name the actual size beside the limit, and `server.rs` names the frame it refused. The read path was already covered against a hostile length -- `frame_edges` sends `u32::MAX` and checks the refusal comes before anything that large is allocated -- so this adds one assertion there rather than a test of its own: that the refusal carries both numbers. Reverting the wording fails it.