perf(upgrade): forward vectored writes on the Upgraded type

This commit is contained in:
Sean McArthur
2019-12-19 14:10:46 -08:00
parent 61b62eeac8
commit 6d2bcef272
4 changed files with 175 additions and 34 deletions

View File

@@ -955,7 +955,7 @@ mod upgrades {
};
let (io, buf, _) = h1.into_inner();
pending.fulfill(Upgraded::new(Box::new(io), buf));
pending.fulfill(Upgraded::new(io, buf));
return Poll::Ready(Ok(()));
}
Err(e) => match *e.kind() {