Skip to content

dns cache: add host info to onLoadDnsCacheComplete callback#15144

Merged
alyssawilk merged 1 commit intoenvoyproxy:mainfrom
chradcliffe:add-host-to-dns-callback
Mar 3, 2021
Merged

dns cache: add host info to onLoadDnsCacheComplete callback#15144
alyssawilk merged 1 commit intoenvoyproxy:mainfrom
chradcliffe:add-host-to-dns-callback

Conversation

@chradcliffe
Copy link
Copy Markdown
Contributor

Commit Message: Provide the host info in the onLoadDnsCacheComplete callback so that the worker threads do not have to do an additional lookup to get the resolved IP.
Additional Description:
Risk Level: Low - no change to functionality and code modifications are minimal
Testing: Unit testing
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

Provide the host info in the `onLoadDnsCacheComplete` callback so that
the worker threads do not have to do an additional lookup to get the
resolved IP.

Signed-off-by: Craig Radcliffe <craig.radcliffe@broadcom.com>
@zuercher
Copy link
Copy Markdown
Member

/assign @alyssawilk

Copy link
Copy Markdown
Contributor

@alyssawilk alyssawilk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Argh so sorry for the delay. This looks totally solid!

@alyssawilk alyssawilk merged commit 80c0abd into envoyproxy:main Mar 3, 2021
@chradcliffe chradcliffe deleted the add-host-to-dns-callback branch March 3, 2021 19:27
chradcliffe pushed a commit to chradcliffe/envoy that referenced this pull request Mar 15, 2021
This is a follow-up to envoyproxy#15144 that returns the requested DNS host info
when the host info was already in the cache, which avoids a second
lookup when the client code wants information from the cache.

Signed-off-by: Craig Radcliffe <craig.radcliffe@broadcom.com>
snowp pushed a commit that referenced this pull request Mar 17, 2021
…15498)

This is a follow-up to #15144 that returns the requested DNS host info
when the host info was already in the cache, which avoids a second
lookup when the client code wants information from the cache.

Signed-off-by: Craig Radcliffe <craig.radcliffe@broadcom.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants