Skip to content

Commit 3d173e9

Browse files
committed
fix: notify_recv after send_reset() in reset_on_recv_stream_err() to ensure local stream is released properly
Similar to what have been done in fn send_reset<B>(), we should notify RecvStream that is parked after send_reset().
1 parent c0d9feb commit 3d173e9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/proto/streams/streams.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1549,6 +1549,9 @@ impl Actions {
15491549
// Reset the stream.
15501550
self.send
15511551
.send_reset(reason, initiator, buffer, stream, counts, &mut self.task);
1552+
self.recv.enqueue_reset_expiration(stream, counts);
1553+
// if a RecvStream is parked, ensure it's notified
1554+
stream.notify_recv();
15521555
Ok(())
15531556
} else {
15541557
tracing::warn!(

0 commit comments

Comments
 (0)