fix(client): handle when DNS resolves after a timeout triggers

Closes #848
This commit is contained in:
Sean McArthur
2016-07-11 15:55:29 -07:00
parent 220d09fc3a
commit 006f66f34a
8 changed files with 131 additions and 115 deletions

View File

@@ -48,7 +48,7 @@ impl hyper::client::Handler<HttpStream> for Dump {
Err(e) => match e.kind() {
io::ErrorKind::WouldBlock => Next::read(),
_ => {
println!("ERROR: {}", e);
println!("ERROR:example: {}", e);
Next::end()
}
}
@@ -56,7 +56,7 @@ impl hyper::client::Handler<HttpStream> for Dump {
}
fn on_error(&mut self, err: hyper::Error) -> Next {
println!("ERROR: {}", err);
println!("ERROR:example: {}", err);
Next::remove()
}
}