Skip to content
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

Private/caolan/can elide a dns lookup #10138

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

caolanm
Copy link
Contributor

@caolanm caolanm commented Sep 26, 2024

  • Resolves: #
  • Target version: master

Summary

TODO

  • ...

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

@caolanm caolanm force-pushed the private/caolan/can_elide_a_dns_lookup branch 2 times, most recently from 2b173db to 9d03c3b Compare September 26, 2024 20:25
@caolanm caolanm mentioned this pull request Sep 27, 2024
6 tasks
Signed-off-by: Caolán McNamara <[email protected]>
Change-Id: I08aae7fcafa68cfb3fc90fb418375b0bd95458a9
Signed-off-by: Caolán McNamara <[email protected]>
Change-Id: I22cbcec530bb8defd7b3d0f71689d47a7ea60206
Signed-off-by: Caolán McNamara <[email protected]>
Change-Id: I30bee69e9960fa4f67c81e3d4d67ea6b227d73fc
Signed-off-by: Caolán McNamara <[email protected]>
Change-Id: I56a0c217928d96298e763fa974cfc976ffa0bc02
Signed-off-by: Caolán McNamara <[email protected]>
Change-Id: Id679fc366126ec49583c40887e6450ea5d123d22
so we don't have to fetch it again later at SSL verification time.

Signed-off-by: Caolán McNamara <[email protected]>
Change-Id: Iadfb3918cbedf67393eaeb6d8ba5f94cb6c4c27b
@caolanm caolanm force-pushed the private/caolan/can_elide_a_dns_lookup branch from 9d03c3b to 9e0c51f Compare September 27, 2024 09:00
@caolanm caolanm requested a review from Ashod September 27, 2024 10:11
@caolanm
Copy link
Contributor Author

caolanm commented Sep 27, 2024

My thought here here is that the only (non-testing) place where we create a StreamSockets with a hostname is where we have just retrieved the DNS info in order to connect. Later in verifyCertificate, which will basically nearly always get called, we check if that hostname is for the localhost or not, and end up doing another DNS query to find that out. We could elide that (currently sync) 2nd DNS query if we just determine that during the 1st DNS query at ctor time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To Review
Development

Successfully merging this pull request may close these issues.

1 participant