release connection capacity when recv_data has stream error (#186)

This commit is contained in:
Sean McArthur
2017-12-18 15:08:21 -08:00
committed by GitHub
parent 1a0b1eec2b
commit eafd6bfd98
3 changed files with 81 additions and 2 deletions

View File

@@ -246,7 +246,7 @@ impl Recv {
}
/// Releases capacity of the connection
fn release_connection_capacity(
pub fn release_connection_capacity(
&mut self,
capacity: WindowSize,
task: &mut Option<Task>,