Skip to main content

MAX_BODY_BYTES

Constant MAX_BODY_BYTES 

Source
pub const MAX_BODY_BYTES: usize = _; // 8_388_608usize
Expand description

Cap on how many bytes we will read from any body, streamed. 8 MiB is comfortably above any sane feed; a body that exceeds it is aborted mid-stream (never fully buffered), which is what defeats a gzip decompression bomb.