MAX_FRAME_ON_WIRE

Maximum total on-wire envelope size: HEADER_SIZE + MAX_PAYLOAD_SIZE.

Transports MUST validate outbound frames against this value (the full envelope including the 4-byte header), not against MAX_PAYLOAD_SIZE alone — using the smaller bound rejects valid 509–512 B payloads.