feat(server): add experimental pipeline flush aggregation option to Http

By enabling `Http::pipeline`, the connection will aggregate response
writes to try to improve sending more responses in a single syscall.
This commit is contained in:
Sean McArthur
2017-09-21 18:09:28 -07:00
parent 16e834d37c
commit dd54f20b55
4 changed files with 90 additions and 7 deletions

View File

@@ -47,6 +47,9 @@ where I: AsyncRead + AsyncWrite,
}
}
pub fn set_flush_pipeline(&mut self, enabled: bool) {
self.io.set_flush_pipeline(enabled);
}
fn poll2(&mut self) -> Poll<Option<Frame<http::MessageHead<T::Incoming>, http::Chunk, ::Error>>, io::Error> {
trace!("Conn::poll()");