send reset CANCEL when SendStream is dropped with no end-of-stream sent (#210)

This commit is contained in:
Sean McArthur
2018-01-04 11:06:06 -08:00
committed by GitHub
parent d0b5b6246a
commit 3cbc158210
4 changed files with 84 additions and 14 deletions

View File

@@ -243,7 +243,7 @@ impl Stream {
///
/// In this case, a reset should be sent.
pub fn is_canceled_interest(&self) -> bool {
self.ref_count == 0 && !self.state.is_recv_closed()
self.ref_count == 0 && !self.state.is_closed()
}
pub fn assign_capacity(&mut self, capacity: WindowSize) {