Skip to main content

MAX_METADATA_BLOB_BYTES

Constant MAX_METADATA_BLOB_BYTES 

Source
pub const MAX_METADATA_BLOB_BYTES: u64 = crate::upload::PROTOCOL_MAX_CHUNK; // 16_777_216u64
Expand description

The most FfiSession::fetch_metadata_blob reads of a metadata blob whose size the feed does not list (16 MiB, the upload protocol’s largest chunk), the bound the CLI’s restore reads one under. A sealed sidecar is a few KiB; the cap only stops a server that keeps answering full windows from growing the buffer without bound.