-
-
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
Return hostnames from ThreadedResolver #5118
Conversation
Please fix failed tests, I'm pretty sure that they are related to your change |
(sorry, didn't mean to click "comment" yet!) |
It looks like c48f2d1, which introduced this bug, also modified the test to assert incorrect behavior. @socketpair can you comment on why this was done? Should resolve return an address as "hostname" for the link-local case? Or was this just a change to the test to make it assert what the function now returns. |
Fix a variable-shadowing bug causing `ThreadedResolver.resolve` to return the resolved IP as the "hostname" in each record, which prevented validation of HTTPS connections. Fixes aio-libs#2110.
(the updated version here reverts the test change in c48f2d1) |
Yes, it was. I made it by mistake a few days ago. |
Fix a variable-shadowing bug causing `ThreadedResolver.resolve` to return the resolved IP as the "hostname" in each record, which prevented validation of HTTPS connections. Fixes #2110.
💚 Backport successfulThe PR was backported to the following branches:
|
Backports the following commits to 3.7: - Return hostnames from ThreadedResolver (#5118) Co-authored-by: Dustin J. Mitchell <[email protected]>
aio-libs/aiohttp#5110 means that https URLs don't work. aio-libs/aiohttp#5118 fixes the issue, and will be included in 3.7.1.
What do these changes do?
Fix a variable-shadowing bug causing
ThreadedResolver.resolve
toreturn the resolved IP as the "hostname" in each record, which prevented
validation of HTTPS connections. Fixes #5110.
Are there changes in behavior for the user?
Failed HTTPS connections will work again.
Related issue number
Fixes #5110.
Checklist
CONTRIBUTORS.txt
(N/A: no new content)CHANGES
folder<issue_id>.<type>
for example (588.bugfix)issue_id
change it to the pr id after creating the pr.feature
: Signifying a new feature..bugfix
: Signifying a bug fix..doc
: Signifying a documentation improvement..removal
: Signifying a deprecation or removal of public API..misc
: A ticket has been closed, but it is not of interest to users.