Skip to main content

MONITOR_CHANNEL_CAP

Constant MONITOR_CHANNEL_CAP 

Source
pub const MONITOR_CHANNEL_CAP: usize = 256;
Expand description

Bound on the number of undrained monitor events held in the channel.

Lifecycle events (connect/disconnect/bind/accept) are low volume, but the channel was previously unbounded, so an application that never drained its monitor would let it grow without limit. Bounding it caps that footprint; emit drops events (rather than blocking the socket path) once full.