Skip to content

ScanningRegistryOptions

Defined in: packages/net-core/src/scanning-registry.ts:4

optional maxDepth?: number

Defined in: packages/net-core/src/scanning-registry.ts:18

How many outstanding exchanges an inbound frame may be offered to before it is treated as unsolicited.

  • 1 — strict FIFO. Correct for protocols where responses are guaranteed to arrive in request order: SMTP, LMTP, POP3, Postfix socketmap.
  • Infinity — opportunistic. Correct for protocols where several commands may be outstanding with no correlation key and unrelated traffic can arrive between them, such as IRC.

Defaults to 1, the conservative choice: a frame that no exchange should have claimed is better surfaced as unsolicited than mis-attributed.