Closed
Description
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:
- Implement custom connector with
Connect
instead of HttpConnector - Add resolver type to HttpConnector (feat(client): make dns resolver pluggable #1174)
- 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?