Skip to main content

HTTP_ZSTD_WINDOW_LOG_MAX

Constant HTTP_ZSTD_WINDOW_LOG_MAX 

Source
pub const HTTP_ZSTD_WINDOW_LOG_MAX: u32 = 23; // 23u32
Expand description

RFC 9659 window ceiling for zstd under HTTP Content-Encoding: zstd: conformant senders require a Window_Size of at most 8 MB (2^23) and decoders need only support up to that. This bounds the decoder’s window allocation to 8 MB regardless of the (much larger) decompressed cap. It governs HTTP content coding only; other transports (e.g. gRPC/OTLP, whose clients are not bound by RFC 9659 and may legitimately use larger windows) are not clamped to it. See https://www.rfc-editor.org/info/rfc9659/.