Skip to main content

PRIORITY_UPDATE_MAX_VALUE

Constant PRIORITY_UPDATE_MAX_VALUE 

Source
pub const PRIORITY_UPDATE_MAX_VALUE: usize = 1024;
Expand description

Maximum length of the priority_field_value portion of a PRIORITY_UPDATE frame (RFC 9218 §7.1). The field is a Structured Field Item (RFC 8941): ASCII-only, intended for compact dictionary payloads such as u=3, i. 1024 bytes mirrors nghttp2’s NGHTTP2_MAX_PRIORITY_VALUE_LEN and the upper-bound the h2 Rust crate enforces, an order of magnitude tighter than SETTINGS_MAX_FRAME_SIZE — the attacker is denied a per-frame 16 KiB allocation primitive sized in single TCP segments.