Skip to main content

relay_connect_timeout

Function relay_connect_timeout 

Source
pub fn relay_connect_timeout(clearnet: Duration) -> Duration
Expand description

Adjust a relay connect budget for the transport actually in use.

Clearnet TCP+TLS settles in well under a second, so the tight per-call budgets are right there and each caller’s intent is preserved. Under Tor those same budgets expire mid-circuit, and because the health-check and reconcile loops treat a timeout as “unhealthy” they call disconnect() — which terminates the connection task — then retry, so a relay churns pending → terminated forever and never connects. Raising the floor lets the circuit finish.