Skip to content

Commit bec9e5e

Browse files
committed
fix: closed stream by CANCEL code
1 parent b84c244 commit bec9e5e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/proto/streams/state.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ impl State {
420420
pub fn ensure_recv_open(&self) -> Result<bool, proto::Error> {
421421
// TODO: Is this correct?
422422
match self.inner {
423+
Closed(Cause::Error(Error::Reset(_, Reason::CANCEL, _))) => Ok(false),
423424
Closed(Cause::Error(ref e)) => Err(e.clone()),
424425
Closed(Cause::ScheduledLibraryReset(reason)) => {
425426
Err(proto::Error::library_go_away(reason))

0 commit comments

Comments
 (0)