Reassign capacity from reset streams. (#320)

I believe this was an oversight - a stream that is reset can still have some
capacity assigned to it (e.g. if said capacity was assigned in the same poll as
the reset), which should be redistributed.
This commit is contained in:
Geoffry Song
2018-10-16 12:14:42 -07:00
committed by Carl Lerche
parent b116605560
commit 6d8554a23c
3 changed files with 65 additions and 11 deletions

View File

@@ -284,9 +284,9 @@ where
let actions = &mut me.actions;
me.counts.transition(stream, |_, stream| {
me.counts.transition(stream, |counts, stream| {
actions.recv.recv_reset(frame, stream);
actions.send.recv_reset(send_buffer, stream);
actions.send.recv_err(send_buffer, stream, counts);
assert!(stream.state.is_closed());
Ok(())
})