-
-
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
Aiodns support #747
Aiodns support #747
Conversation
Conflicts: requirements-dev.txt tests/test_helpers.py tests/test_signals.py
aiodns = None | ||
|
||
|
||
class ExecutorResolver(AbstractResolver): |
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.
Strictly speaking thread pool is just internal details of asyncio implementation, and may be change in future. I'd call it 'DefaultResolver' and document it as default asyncio based resolver
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.
Thanks!
@@ -0,0 +1,62 @@ | |||
import asyncio |
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.
Please rewrite tests to use py.test style (like test_client_connection.py
for example).
Any way I can help this feature move forward? |
@lphuberdeau I was planning to continue on this PR in a week or 2-3 but I am absolutely swamped right now. You're most welcome to contribute if you have an earlier opportunity. Let me know. |
@gwillem I've branched off your work. I'll notify you when the pull request is ready to be updated. |
https://github.com/lphuberdeau/aiohttp/tree/aiodns-support
I'm a bit unclear about what needs to be tested in the TCPConnector without mocking absolutely everything. About the missing .close(), it could be added, but given the object is instantiated outside of the connector, I'm not certain it is the connector's responsibility. |
b497c05
to
ff36775
Compare
Apparently pycares does not build on Win arch. Is this a showstopper, given that Aiodns is optional? @lphuberdeau great work btw! |
The tests will run fine without it as the skips are in place. Everything in pycares seem to indicate it should build on windows. To resolve the CI issue, I see two options:
|
FYI I have since migrated back to Tornado's AsyncHTTPClient for the following reasons:
IMHO aiohttp is cleaner, especially with native support for asyncio. And I would love to use aiohttp in the future. But right now I have deadlines :) so I need to be pragmatic. |
@gwillem If you no longer want to track this issue, I can probably submit it back under a different PR and handle the back and forth. |
@lphuberdeau ok, please do! And again, thanks for joining in. |
Feel free to close this one. |
Fixes #728. Todo: