Skip to main content

MAX_WIRE_MESSAGE_SIZE

Constant MAX_WIRE_MESSAGE_SIZE 

Source
pub const MAX_WIRE_MESSAGE_SIZE: usize = _; // 5_242_880usize
Expand description

Maximum wire message size in bytes (5MB).

Limits the input buffer accepted by ChunkMessage::decode to prevent unbounded allocation from malicious or corrupted payloads. Set slightly above MAX_CHUNK_SIZE to accommodate message envelope overhead.