perf(http2): reduce empty EOS frames if end is already known

This commit is contained in:
Sean McArthur
2018-04-18 16:35:53 -07:00
parent a4eb612bd5
commit 38eba1540f
3 changed files with 20 additions and 8 deletions

View File

@@ -64,7 +64,8 @@ where
// parked Connection.
let (tx, rx) = oneshot::channel();
let fut = conn
.map_err(|e| debug!("client h2 connection error: {}", e))
.inspect(|_| trace!("connection complete"))
.map_err(|e| debug!("connection error: {}", e))
.select2(rx)
.then(|res| match res {
Ok(Either::A(((), _))) |
@@ -132,7 +133,7 @@ where
Ok(Async::Ready(None)) |
Err(_) => {
trace!("client tx dropped");
trace!("client::dispatch::Sender dropped");
return Ok(Async::Ready(()));
}
}