-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Using async dns resolver hardcode disabled #6836
Comments
Rather than a screenshot, it would be better if you found the code on Github and figured out why it was commented out. In this case, the commit is 9fbb7d7 So, it looks like c-ares, used by aiodns, was causing issues. It appears this issue is related to the problem: c-ares/c-ares#70 So, at a glance, it looks like the issue is probably fixed now and we can revert that commit. However, it would be great if someone can actually take a look through that issue and test out that the problem has indeed been fixed (plus create a PR to revert the change). |
I just tried to switch Home Assistant to use the Line 91 in aa014a9
c-ares now has |
It's enabled again now. |
Describe the bug
In file aiohttp/resolver.py I found that selecting of async resolver has beed disabled(commented).
And that's the reason to use ThreadedResolver whether you have aiodns or not.
Here are the changes after which everything will work well.
To Reproduce
Expected behavior
aiohttp should use AsyncResolver, if we have aiodns installed
Logs/tracebacks
Python Version
aiohttp Version
multidict Version
yarl Version
OS
CentOS 7 3.10.0-1127.18.2.el7.x86_64
Related component
Client
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: