Fix some flow control bugs

When a stream is closed, connection level capacity should be released
back to the connection and then assigned to other streams waiting for
capacity.
This commit is contained in:
Carl Lerche
2017-09-07 16:45:20 -07:00
parent 9b42dafd24
commit ae6bad6cef
4 changed files with 232 additions and 9 deletions

View File

@@ -238,11 +238,10 @@ fn send_data_receive_window_update() {
});
let mock = mock.assert_client_handshake().unwrap()
.and_then(|(_, mock)| {
mock.into_future().unwrap()
})
.and_then(|(_, mock)| mock.into_future().unwrap())
.and_then(|(frame, mock)| {
let _ = assert_headers!(frame.unwrap());
let request = assert_headers!(frame.unwrap());
assert!(!request.is_end_stream());
mock.into_future().unwrap()
})
.and_then(|(frame, mut mock)| {