Skip to content

Commit e491140

Browse files
authored
[FIX] Ignore window adjustment after channel EOF (#580)
1 parent c4fb93f commit e491140

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

russh/src/client/encrypted.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ impl Session {
542542
new_size = channel.recipient_window_size.saturating_add(amount);
543543
channel.recipient_window_size = new_size;
544544
} else {
545-
return Err(crate::Error::WrongChannel.into());
545+
return Ok(());
546546
}
547547
}
548548

russh/src/server/encrypted.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ impl Session {
662662
new_size = channel.recipient_window_size.saturating_add(amount);
663663
channel.recipient_window_size = new_size;
664664
} else {
665-
return Err(Error::WrongChannel.into());
665+
return Ok(());
666666
}
667667
}
668668
if let Some(ref mut enc) = self.common.encrypted {

0 commit comments

Comments
 (0)