feat(dns): tokio_threadpool::blocking resolver

Unlike the default resolver, this avoids spawning extra dedicated
threads but only works on the multi-threaded Tokio runtime.

Closes #1676
This commit is contained in:
Steven Fackler
2018-10-20 10:54:45 -07:00
committed by Sean McArthur
parent 6fe532da4c
commit 1e8d6439cf
3 changed files with 50 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ tokio-io = "0.1"
tokio-reactor = { version = "0.1", optional = true }
tokio-tcp = { version = "0.1", optional = true }
tokio-timer = { version = "0.2", optional = true }
tokio-threadpool = { version = "0.1", optional = true }
want = "0.0.6"
[dev-dependencies]
@@ -62,6 +63,7 @@ runtime = [
"tokio-reactor",
"tokio-tcp",
"tokio-timer",
"tokio-threadpool",
]
nightly = []
__internal_flaky_tests = []