Increment stream window capacity when sending window update (#67)

This commit is contained in:
Oliver Gould
2017-09-08 12:24:06 -07:00
committed by Carl Lerche
parent c47717204c
commit 17bebe719a
2 changed files with 13 additions and 13 deletions

View File

@@ -525,7 +525,7 @@ impl<B, P> Recv<B, P>
try_ready!(dst.poll_ready());
// Get the next stream
let stream = match self.pending_window_updates.pop(store) {
let mut stream = match self.pending_window_updates.pop(store) {
Some(stream) => stream,
None => return Ok(().into()),
};
@@ -543,6 +543,9 @@ impl<B, P> Recv<B, P>
// Buffer it
dst.buffer(frame.into()).ok().expect("invalid WINDOW_UPDATE frame");
// Update flow control
stream.recv_flow.inc_window(incr).ok().expect("unexpected flow control state");
}
}
}