Skip to main content

CONNECT_TIMEOUT

Constant CONNECT_TIMEOUT 

Source
pub const CONNECT_TIMEOUT: Duration;
Expand description

Maximum time to wait for UnixStream::connect to return. The mgmt daemon is on the same host as the CLI; if the kernel doesn’t grant the connection in five seconds something is badly wrong (daemon not running, socket file stale, FS perms wrong) and operators want the failure mode to be a fast error rather than a hang.