Skip to main content

OUTPUT_CHANNEL_SIZE

Constant OUTPUT_CHANNEL_SIZE 

Source
pub(crate) const OUTPUT_CHANNEL_SIZE: usize = 128;
Expand description

Capacity of the output broadcast channel towards the attach clients. A client which falls further behind than this loses the oldest output, which gets logged with the number of skipped messages, see Lag. The container output never waits for an attach client, a slow or stuck client must not block the container or the other clients, and the server does not buffer output without bound for it either. About what the stdio channels buffer for exec, as a power of two, which tokio rounds the capacity of a broadcast channel up to anyway.