Module pool

Module pool 

Source
Expand description

Concurrent map of currently linked clients per protocol.

Keyed by SocketAddr (the only stable identifier for a UDP client). Wrapped in [tokio::sync::Mutex] so multiple tokio tasks can update concurrently — this is intentionally simple for Batch 2; we can swap to a sharded map if contention is observed.

Structs§

ClientPool
Concurrent pool of linked clients for one [Protocol].

Enums§

UnhealthyOutcome
Outcome of a ClientPool::mark_unhealthy call.

Constants§

DEFAULT_UNHEALTHY_THRESHOLD
Default number of consecutive send failures before a client is evicted.