defaultMaxRemoteFramePayloadLength top-level constant
int
const defaultMaxRemoteFramePayloadLength
Default remote frame payload cap.
Sixteen MiB leaves ample headroom for a large full repaint or inline image, while avoiding a 64 MiB allocation per frame/session. Known frame types have tighter limits below; this global cap also bounds an unknown type's length before the frame is rejected.
Implementation
const int defaultMaxRemoteFramePayloadLength = 16 * 1024 * 1024;