Skip to main content

MAX_LABEL

Constant MAX_LABEL 

Source
pub const MAX_LABEL: usize = 4_000 /* 4_000usize */;
Expand description

The longest label, in code points, that’s encoded or decoded to. Both take time that grows with the square of a label’s length; past this a label fails, as the arithmetic overflowing does. A label in DNS is at most 63 bytes, so no real one comes near it.