-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ameliorate awc timeouts on windows #1662
Conversation
02120b5
to
7ced8a6
Compare
7ced8a6
to
3923159
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess, it is now possible to make awc
doctests use https
. However, I'm not sure if it's right thing to do, as the Windows tests will still be very slow and may randomly fail.
Codecov Report
@@ Coverage Diff @@
## master #1662 +/- ##
==========================================
- Coverage 53.34% 53.32% -0.02%
==========================================
Files 120 120
Lines 11815 11819 +4
==========================================
Hits 6303 6303
- Misses 5512 5516 +4
Continue to review full report at Codecov.
|
I'm not totally sure either, but the other thing to do for now is nothing... :/ |
I still believe 10 sec delay for any request is insane. It doesn't actually fix the problem as I see it, it only changes its kind |
But as we already pointed before, the problem is not located within any of the actix crates. Proper ways of resolving this issue (which are either replacing the dependency or fixing the issue in the dependency, and then waiting for it to release a new version) will take much longer. IMHO, slowly working code is better that code that doesn't work. So I think that it's an acceptable temporary workaround. By the way, any help with a proper solution will be really appreciated 🙃 |
I aggree. But I don't think 10 sec NS lookup is anywhere near acceptable. So I'd propose to either not deliver the crate on windows at all (with CFG and explanation) or no actions to "fix" it in this crate. It's indeed dependencies problem, so the proper solution is fixing/replacing dependency. I probably should create an issue in this dependency repository if you didn't already. Any fix is appreciated if it helps, but this one just changes one problem (not working at all) to another (working inapplicable slowly). But I'm not strong on this point so you may right with this fix |
Looks like we're working around a bug in |
PR Type
Bug Workaround
PR Checklist
Overview
Works around issues on Windows seemingly caused by slow DNS lookups by doubling the default timeout period when built for Windows.
See conversation in #1560
cc: @Pzixel @popzxc