It's hard to decide on what a basic default Resolver should do. Some libraries default to blocking the same thread.
Looks like curl (if c-ares isn't available) will spawn a thread per resolve, so slow resolves don't block others...
-
-
Is async not an option here?
-
There isn't a "basic" async option, libc only has the blocking getaddrinfo. Async options typically require a full DNS reimplementation.
- 6 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.