update to tokio 0.2 release (#932)

* update to tokio 0.2 release

* update to h2 0.2.0

* fix compilation errors

* server await JoinHandles from spawn

* fix integration tests using different Runtimes

* cleanup named test output

* fix openssl tests

* cleanup code from review

* refactor server_future for JoinHandle, also fix Udp deadlock
This commit is contained in:
Benjamin Fry
2019-12-06 00:00:00 -08:00
committed by GitHub
parent 22a274714f
commit 3eaf3043d7
85 changed files with 1144 additions and 1521 deletions

View File

@@ -29,13 +29,13 @@ mod tests {
extern crate env_logger;
use std::net::{IpAddr, Ipv4Addr, Ipv6Addr};
use tokio::runtime::current_thread::Runtime;
use tokio::runtime::Runtime;
use crate::config::{ResolverConfig, ResolverOpts};
use crate::AsyncResolver;
fn tls_test(config: ResolverConfig) {
env_logger::try_init().ok();
//env_logger::try_init().ok();
let mut io_loop = Runtime::new().unwrap();
let (resolver, bg) = AsyncResolver::new(config, ResolverOpts::default());