Skip to main content

DEFAULT_MAX_SETTINGS_ENTRIES

Constant DEFAULT_MAX_SETTINGS_ENTRIES 

pub const DEFAULT_MAX_SETTINGS_ENTRIES: usize = 32; // 32usize
Available on crate features http and std only.
Expand description

The default cap on the number of entries Settings::decode will accept, bounding memory when parsing a peer’s SETTINGS frame. Well-behaved peers send only a handful.