Skip to content

move DNS resolver back to the admin thread#559

Merged
hawkw merged 1 commit intomaster-tokio-0.2from
eliza/admin-dns
Jun 12, 2020
Merged

move DNS resolver back to the admin thread#559
hawkw merged 1 commit intomaster-tokio-0.2from
eliza/admin-dns

Conversation

@hawkw
Copy link
Contributor

@hawkw hawkw commented Jun 11, 2020

Upstream changes to trust-dns-resolver removed the background task to
drive DNS resolutions. Now, the resolution is performed as part of the
lookup future.

This means that resolutions are now occurring "inline" when we call into
a resolver, rather than on the background thread. This caused issues
with failed resolutions preventing the proxy from shutting down.

This should hopefully fix that.

Signed-off-by: Eliza Weisman [email protected]

Upstream changes to `trust-dns-resolver` removed the background task to
drive DNS resolutions. Now, the resolution is performed as part of the
lookup future.

This means that resolutions are now occurring "inline" when we call into
a resolver, rather than on the background thread. This caused issues
with failed resolutions preventing the proxy from shutting down.

This should hopefully fix that.

Signed-off-by: Eliza Weisman <[email protected]>
@hawkw hawkw requested a review from olix0r June 11, 2020 23:30
Copy link
Member

@olix0r olix0r left a comment

Choose a reason for hiding this comment

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

lgtm

@hawkw hawkw requested a review from a team June 12, 2020 16:32
Copy link
Contributor

@kleimkuhler kleimkuhler left a comment

Choose a reason for hiding this comment

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

Looks good!

@hawkw hawkw merged commit 9f7ab1d into master-tokio-0.2 Jun 12, 2020
@olix0r olix0r deleted the eliza/admin-dns branch May 25, 2021 15:47
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