Don't unconditionally predict transmits on reset

The exact logic should handle this case just fine.
This commit is contained in:
Benjamin Saunders
2021-03-26 17:53:07 -07:00
committed by Dirkjan Ochtman
parent 7ba3e3d3d3
commit 6616bc958a
+1 -1
View File
@@ -299,7 +299,7 @@ impl<'a> Chunks<'a> {
return ShouldTransmit(false);
}
let mut should_transmit = matches!(state, ChunksState::Reset(_));
let mut should_transmit = false;
// We issue additional stream ID credit iff a remotely-initiated stream stream is finished or reset
if matches!(state, ChunksState::Finished | ChunksState::Reset(_))
&& self.streams.side != self.id.initiator()