pub const CONNECT_TIMEOUT: Duration;Expand description
Cap on establishing a connection, covering the TCP handshake and TLS setup but never the transfer that follows.
ureq applies no connect timeout of its own, which leaves an address that silently drops SYNs costing the kernel’s full retry schedule, around two minutes each. A mirror redirect that lands on a host with several such addresses stalls for as long as it takes to exhaust them all, and the error raised at the end is an unhelpful synthetic “connection refused”. ureq divides this budget across the resolved addresses, so the cap is generous enough that a distant mirror still gets several seconds.