Security release addressing GHSA-37f9-7m79-6866 (frame-handling denial of service reachable by a malicious or non-compliant broker).
- Reject a
connection.tunewhoseframeMaxis below the protocol minimum of 4096, and guardsendContentso an undersizedframeMaxcan no longer send publishing into an unbounded loop. - Add a
maxFrameSizeconnection option (also a URL query parameter) bounding the size of incoming frames, checked from the frame header alone. Default 64 MiB (or the negotiatedframeMaxif larger);0disables it. Kept separate from the negotiatedframeMaxso brokers that send larger unsplit frames (see #784) still work.
Reported by Rizwan Bedekar (https://github.com/r-bedekar).