Skip to main content

COMMAND_QUEUE_DEPTH

Constant COMMAND_QUEUE_DEPTH 

Source
pub(crate) const COMMAND_QUEUE_DEPTH: usize = 16;
Expand description

How many commands a session’s inbox holds before a sender has to wait.

Small on purpose. A control caller issues one request and waits for its answer, so depth beyond a handful only ever buys the ability to queue work behind a session that has stopped serving its inbox — which is a session that is on its way down, and a queued command aimed at it should be refused rather than parked.