Skip to main content

Module limits

Module limits 

Source
Expand description

Decoder limits. The string caps are normative (docs/PROTOCOL.md §6); the list and depth caps are defensive implementation limits documented in the same section.

Constants§

MAX_CONTENT_TYPE_BYTES
Cap for the DATA content_type field.
MAX_ENDPOINT_BYTES
Cap for the DATA endpoint field.
MAX_FILTER_BYTES
Cap for the SUBSCRIBE/UNSUBSCRIBE filter field.
MAX_LIST_ITEMS
Cap on the number of items in a HELLO list field.
MAX_MESSAGE_BYTES
Cap for the ERROR message field.
MAX_REPORT_LEVELS
Cap on the number of levels a DATA header may order a report for (docs/PROTOCOL.md §6.2, key 10).
MAX_SKIP_DEPTH
Nesting depth allowed when skipping an unknown field.
MAX_TOPIC_BYTES
Cap for the DATA topic field.
MAX_TRACEPARENT_BYTES
Cap for the DATA traceparent field.
MAX_TRACESTATE_BYTES
Cap for the DATA tracestate field.
PRODUCER_BYTES
Length of the DATA producer field: a raw 32-byte digest.