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§
- Client
Pool - Concurrent pool of linked clients for one [
Protocol].
Enums§
- Unhealthy
Outcome - Outcome of a
ClientPool::mark_unhealthycall.
Constants§
- DEFAULT_
UNHEALTHY_ THRESHOLD - Default number of consecutive send failures before a client is evicted.