Skip to content

TLS connection times out #1117

@pl4nf0ur

Description

@pl4nf0ur

This very simple example fails due to a TLS timeout with both the rustls backend as well as the native-tls:

let agent: ureq::Agent = ureq::Agent::config_builder()
    .timeout_connect(Some(Duration::from_secs(5)))
    .build()
    .into();

agent.get("https://google.com").call().unwrap();

->

called `Result::unwrap()` on an `Err` value: Timeout(Connect)

I tried doing the same w/ reqwest via:

reqwest::blocking::Client::new()
    .get("https://google.com")
    .send()
    .unwrap();

as well as w/ curl, and they both work.

Interestingly, if I send the request to https://httpbin.org it works, but most websites cause the request to time out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions