pub struct TrackerConfig {
pub max_connections: usize,
pub max_historic: usize,
pub max_quic_mappings: usize,
pub keep_historic: bool,
pub dns_attribution: bool,
}Expand description
Tuning knobs for a ConnectionTracker.
Fields§
§max_connections: usizeMaximum number of concurrent active connections. New connections beyond this limit are dropped (existing ones still update) to bound memory under port scans or connection floods.
max_historic: usizeMaximum number of recently-closed (“historic”) connections retained. Oldest-closed entries are evicted first.
max_quic_mappings: usizeMaximum number of QUIC connection-ID -> connection-key mappings kept for coalescing migrated QUIC connections. Cleared wholesale when exceeded.
keep_historic: boolWhether ConnectionTracker::cleanup archives removed connections into
the historic table. Headless tools that don’t need a closed-connection
view can set this to false to save memory.
dns_attribution: boolWhether connections without an authoritative hostname (TLS SNI or HTTP
Host:) are tagged with the name from a DNS response observed on the
wire shortly before the connection appeared. Purely passive; consumers
that don’t display hostnames can set this to false.