Skip to content

Commit

Permalink
Add max_buf_size setting in the server::Builder
Browse files Browse the repository at this point in the history
Similaraly to client::Builder::http1_max_buf_size
  • Loading branch information
luben committed Feb 11, 2019
1 parent 8393dc9 commit 7ccc31c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,14 @@ impl<I, E> Builder<I, E> {
self
}

/// Set the maximum buffer size.
///
/// Default is ~ 400kb.
pub fn max_buf_size(mut self, val: usize) -> Self {
self.protocol.max_buf_size(val);
self
}

/// Sets the `Executor` to deal with connection tasks.
///
/// Default is `tokio::spawn`.
Expand Down

0 comments on commit 7ccc31c

Please sign in to comment.