Skip to main content

resolve

Function resolve 

Source
fn resolve(
    addr: &str,
    deadline: Instant,
    resolver: &[&str],
) -> Result<SocketAddr, ProbeResult>
Expand description

host:port to an address within the deadline. A literal address needs no lookup; a name is resolved by resolver (getent ahosts) as a subprocess that is killed at the deadline, so a stalled resolver costs the probe its budget and no more.