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

feat(client): add Resolve, used by HttpConnector #1674

Merged
merged 1 commit into from
Oct 18, 2018
Merged

Conversation

seanmonstar
Copy link
Member

This introduces a Resolve trait to describe asynchronous DNS
resolution. The HttpConnector can be configured with a resolver,
allowing a user to still use all the functionality of the
HttpConnector, while customizing the DNS resolution.

To prevent a breaking change, the HttpConnector has its Resolve
generic set by default to GaiResolver. This is same as the existing
resolver, which uses getaddrinfo inside a thread pool.

Closes #1517

This introduces a `Resolve` trait to describe asynchronous DNS
resolution. The `HttpConnector` can be configured with a resolver,
allowing a user to still use all the functionality of the
`HttpConnector`, while customizing the DNS resolution.

To prevent a breaking change, the `HttpConnector` has its `Resolve`
generic set by default to `GaiResolver`. This is same as the existing
resolver, which uses `getaddrinfo` inside a thread pool.

Closes #1517
@seanmonstar seanmonstar merged commit 2d5af17 into master Oct 18, 2018
@seanmonstar seanmonstar deleted the resolver branch October 18, 2018 19:10
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.

Substitute DNS Resolver
1 participant