Skip to main content

resolve_endpoint

Function resolve_endpoint 

Source
pub(crate) async fn resolve_endpoint(endpoint: &Endpoint) -> Result<SocketAddr>
Expand description

Async version of SocketAddr::try_from(endpoint). Domains are resolved on a blocking thread pool under a timeout, so DNS never blocks the executor.