Skip to main content

STDIN_WRITE_BOUND

Constant STDIN_WRITE_BOUND 

Source
pub(crate) const STDIN_WRITE_BOUND: Duration;
Expand description

How long one write to the CLI’s stdin, and its ack, may take before the write fails.

A write had no bound. A child that stopped reading its stdin - a wedged CLI, a busy one, a full pipe - left the writer task parked in write_all and every caller waiting on its ack for ever. The hook callback that writes a control response is one of those callers, so a backed-up child hung the server silently: no error, no panic, no reap. Thirty seconds is longer than a pipe write to a reading child ever takes and far shorter than the 26.7 minutes the 2026-11-09 freeze went unnoticed.