upgrade tokio, bytes, hyper, reqwest, http-serve

This was mostly straightforward. The most confusing part waas the Sync
bound change on body streams. I copied what hyper did and it seemed to
work. /shruggie
This commit is contained in:
Scott Lamb
2021-01-27 11:47:52 -08:00
parent 4c5444740b
commit b114493729
6 changed files with 240 additions and 336 deletions

View File

@@ -286,9 +286,7 @@ pub async fn run(args: &Args) -> Result<(), Error> {
move |req| Arc::clone(&svc).serve(req)
}))
});
let server = ::hyper::server::Server::bind(&args.http_addr)
.tcp_nodelay(true)
.serve(make_svc);
let server = ::hyper::Server::bind(&args.http_addr).tcp_nodelay(true).serve(make_svc);
let mut int = signal(SignalKind::interrupt())?;
let mut term = signal(SignalKind::terminate())?;