Skip to main content

CONNECT_TIMEOUT

Constant CONNECT_TIMEOUT 

Source
const CONNECT_TIMEOUT: Duration;
Expand description

Dial timeout so a stuck connect_async (no OS-level deadline) can’t hang the loop; the dial is also raced against shutdown so a signal is observed promptly rather than bounded by the OS TCP timeout.