check for StreamId overflow (#68)

This commit is contained in:
Sean McArthur
2017-09-19 13:10:48 -07:00
committed by GitHub
parent e049dcb62b
commit 0c8bd75224
10 changed files with 141 additions and 43 deletions

View File

@@ -23,7 +23,7 @@ use self::store::{Entry, Store};
use self::stream::Stream;
use error::Reason::*;
use frame::StreamId;
use frame::{StreamId, StreamIdOverflow};
use proto::*;
use bytes::Bytes;
@@ -37,6 +37,9 @@ pub struct Config {
/// Maximum number of locally initiated streams
pub local_max_initiated: Option<usize>,
/// The stream ID to start the next local stream with
pub local_next_stream_id: StreamId,
/// If the local peer is willing to receive push promises
pub local_push_enabled: bool,