pub const DEFAULT_MAX_RECURSION_DEPTH: u8 = 16;Expand description
The default amount of acceptable nesting.
The default is 16.
Typically, we expect a message to look like:
[ encryption container: [ compression container: [ signature: [ literal data ]]]]So, this should be more than enough.
To change the maximum recursion depth, use
PacketParserBuilder::max_recursion_depth.