WIP: send flow control

This commit is contained in:
Carl Lerche
2017-08-09 14:16:32 -07:00
parent 87c4d36b0c
commit dfec401fdf
9 changed files with 170 additions and 89 deletions

View File

@@ -28,6 +28,11 @@ pub(super) struct Stream<B> {
/// True if the stream is currently pending send
pub is_pending_send: bool,
/// A stream's capacity is never advertised past the connection's capacity.
/// This value represents the amount of the stream window that has been
/// temporarily withheld.
pub unadvertised_send_window: WindowSize,
}
impl<B> Stream<B> {
@@ -41,6 +46,7 @@ impl<B> Stream<B> {
next: None,
pending_push_promises: store::List::new(),
is_pending_send: false,
unadvertised_send_window: 0,
}
}