feat(server): add http2_max_concurrent_streams builder option

Closes #1772
This commit is contained in:
Sean McArthur
2019-02-28 15:00:09 -08:00
parent 8f926a0dae
commit cbae4294c4
3 changed files with 42 additions and 10 deletions

View File

@@ -50,9 +50,8 @@ where
B: Payload,
E: H2Exec<S::Future, B>,
{
pub(crate) fn new(io: T, service: S, exec: E) -> Server<T, S, B, E> {
let handshake = Builder::new()
.handshake(io);
pub(crate) fn new(io: T, service: S, builder: &Builder, exec: E) -> Server<T, S, B, E> {
let handshake = builder.handshake(io);
Server {
exec,
state: State::Handshaking(handshake),