Skip to main content

MAX_LIST_ITEMS

Constant MAX_LIST_ITEMS 

Source
pub const MAX_LIST_ITEMS: usize = 64;
Expand description

Cap on the number of items in a HELLO list field.

Without it, a hostile peer could pin max_concurrent_uni_streams worth of large Vec<u64>s by opening many HELLO streams.