Skip to main content

MAX_LINE

Constant MAX_LINE 

Source
pub const MAX_LINE: usize = _ /* 1_048_576usize */;
Available on crate features http and streaming only.
Expand description

The largest single line JsonlLines will read: 1 MiB.

The cap that matters for an ingest. The body is deliberately unbounded — that is the point of streaming one — so the only thing standing between a client and unbounded buffering is a limit on how much may arrive with no newline in it. Without this, {"a": repeated forever is a memory exhaustion attack written in one line.