Skip to main content

MAX_MESSAGE_BYTES

Constant MAX_MESSAGE_BYTES 

Source
pub const MAX_MESSAGE_BYTES: u32 = _; // 8_388_608u32
Expand description

Maximum body length a single frame may declare. 8 MiB is generously larger than any CachedArtifact this daemon stores (an image reference string), catching a desynchronized or hostile peer before it forces a runaway allocation.