Skip to content

Substitute DNS Resolver #1517

Closed
Closed
@DarrenTsung

Description

@DarrenTsung

This relates to #1174.

It would be great if we could substitute a resolver instead of using to_socket_addrs and getaddrinfo. It seems there was already a good amount of discussion around this in #1174, but I'm not sure what the conclusion was.

It seems like there are three options:

  1. Implement custom connector with Connect instead of HttpConnector
  2. Add resolver type to HttpConnector (feat(client): make dns resolver pluggable #1174)
  3. Modifying tokio's ClientProto(?). I admit I'm not sure what this actually means for end-users.

Honestly I think 2) makes a lot of sense because we get to avoid any duplication and maintenance efforts to keep a custom connector up-to-date / bug-free with HttpConnector. But again, I'm not sure if 3) is better?

Context for this is: we're trying to update from an old fork of hyper and had previously swapped out the resolver in the fork :).

@seanmonstar thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-clientArea: client.C-featureCategory: feature. This is adding a new feature.E-mediumEffort: medium. Some knowledge of how hyper internal works would be useful.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions