defaultMaxContinuationFramesPerBlock top-level constant

int const defaultMaxContinuationFramesPerBlock

Default maximum number of CONTINUATION frames in one field block.

The byte limit alone does not bound floods of empty or very small frames. A defaultMaxInboundHeaderBlockSize field block sent in frames of the protocol's initial maximum size (16 KiB, see RFC 9113 section 4.1) needs up to 16 CONTINUATION frames. 64 still permits such a block to be split into fragments averaging about 4 KiB while placing a finite bound on per-frame processing, addressing the class of issue described by CERT VU#421644.

Implementation

const int defaultMaxContinuationFramesPerBlock = 64;