New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
actix_web::client doesn't work on windows #1560
Comments
This works for me with rustls on msvc toolchain on Windows. |
I don't have access to Windows to any help in digging into this would be amazing. |
I'll try to reproduce it locally. |
Woah, that was a tough session of looking for a needle in a haystack. But finally I found it, and the perpetrator is the For some reason, on windows DNS lookup takes way too long. There is a relevant (but not exact) issue there: hickory-dns/hickory-dns#1057 Once I increased client timeout, request was executed successfully. Client::build().timeout(std::time::Duration::from_secs(100)).finish(); So, regarding the issue, I see the following possible outcomes:
Not sure which one is preferable, but unfortunately I'm neither have a good networking knowledge nor using Windows for development, so I don't think I can help with the first two options. |
I'm pretty sure that I see no problem with DNS resolving on windows in, say, reqwest or applications. So the culprit must be in the code somewhere |
@Pzixel As I said, the issue is with At least on my machine (Win 10) it was really slow. The logs in the OP are also showing that timeout occurs right after trust-dns-related lines. |
I understand this, as well as I see that |
On reqwest, trust-dns-resolver is an optional resolver. By default it uses hyper's Ok I've subscried to that issue, I think the way forward for us now is to double the default timeout (maybe targetting windows specifically?) and figure out a longer term solution. |
If |
@popzxc would you like to create an issue in https://github.com/bluejekyll/trust-dns ? I didn't play around it so i don't have a MRE using their API |
@Pzixel Sure, I'll try to do it today or tomorrow. |
@Pzixel I'm not sure what happened, but after the most recent Windows update I'm unable to reproduce the issue at all. Could you please try to apply the latest Windows update and then reproduce the issue? |
Steps to Reproduce (for bugs)
Code:
When toml is:
Error is
When toml is:
Error is
Your Environment
Windows 10 x64 2004
rustc -V
): rustc 1.43.1 (8d69840ab 2020-05-04)The text was updated successfully, but these errors were encountered: