pub const DEFAULT_MAX_PACKET_SIZE: u32 = 1 << 20; // 0x0010_0000u32
The default maximum size of non-container packets.
The default is
Packets that exceed this limit will be returned as
Packet::Unknown, with the error set to
This limit applies to any packet type that is not a container packet, i.e. any packet that is not a literal data packet, a compressed data packet, a symmetrically encrypted data packet, or an AEAD encrypted data packet.
To change the maximum recursion depth, use