Skip to content

Commit

Permalink
fix: notify_recv after send_reset() in reset_on_recv_stream_err() to …
Browse files Browse the repository at this point in the history
…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().
  • Loading branch information
jiahaoliang committed Oct 7, 2024
1 parent c0d9feb commit 3d173e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/proto/streams/streams.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1549,6 +1549,9 @@ impl Actions {
// Reset the stream.
self.send
.send_reset(reason, initiator, buffer, stream, counts, &mut self.task);
self.recv.enqueue_reset_expiration(stream, counts);
// if a RecvStream is parked, ensure it's notified
stream.notify_recv();
Ok(())
} else {
tracing::warn!(
Expand Down

0 comments on commit 3d173e9

Please sign in to comment.