refuse streams that would violate max concurrency settings.

improve ping control API
This commit is contained in:
Oliver Gould
2017-07-17 22:18:03 +00:00
parent fb4f0bc5af
commit 79d3aee1dc
9 changed files with 234 additions and 82 deletions

View File

@@ -63,6 +63,7 @@ impl<T> Data<T> {
impl<T: Buf> Data<T> {
pub fn from_buf(stream_id: StreamId, data: T, eos: bool) -> Self {
// TODO ensure that data.remaining() < MAX_FRAME_SIZE
let mut flags = DataFlag::default();
if eos {
flags.set_end_stream();