Skip to content

Commit 5b5e309

Browse files
committed
feat(server): add Builder::http1_pipeline_flush configuration
However, you probably shouldn't use it! It's `doc(hidden)`, since it isn't the truest pipeline support. Instead, it just prevents flushing until read buffer has been consumed. It's only real use is for silly pipeline benchmarks.
1 parent 51223ef commit 5b5e309

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/server/mod.rs

+10
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,16 @@ impl<I> Builder<I> {
176176
self
177177
}
178178

179+
// Sets whether to bunch up HTTP/1 writes until the read buffer is empty.
180+
//
181+
// This isn't really desirable in most cases, only really being useful in
182+
// silly pipeline benchmarks.
183+
#[doc(hidden)]
184+
pub fn http1_pipeline_flush(mut self, val: bool) -> Self {
185+
self.protocol.pipeline_flush(val);
186+
self
187+
}
188+
179189
/// Set whether HTTP/1 connections should try to use vectored writes,
180190
/// or always flatten into a single buffer.
181191
///

0 commit comments

Comments
 (0)