Add initial_max_send_streams() as builder option (#242)

This commit is contained in:
Darren Tsung
2018-03-16 11:58:06 -07:00
committed by Carl Lerche
parent 0cb3e648e9
commit 4595b54cfa
5 changed files with 62 additions and 5 deletions

View File

@@ -1026,6 +1026,8 @@ impl<T, B: IntoBuf> Future for Handshake<T, B>
let server = poll?.map(|codec| {
let connection = proto::Connection::new(codec, Config {
next_stream_id: 2.into(),
// Server does not need to locally initiate any streams
initial_max_send_streams: 0,
reset_stream_duration: self.builder.reset_stream_duration,
reset_stream_max: self.builder.reset_stream_max,
settings: self.builder.settings.clone(),