defaultMaxFrameBytes constant
int
const defaultMaxFrameBytes
Hard ceiling for a single frame to prevent OOM from a malformed header.
Matches the result-buffer ceiling used by ConnectionOptions (16 MB).
Frames legitimately larger than this should fail loudly rather than
trigger a multi-gigabyte allocation.
Implementation
static const int defaultMaxFrameBytes = 16 * 1024 * 1024;