There was an error while loading. Please reload this page.
1 parent 8e75aae commit 1f3a306Copy full SHA for 1f3a306
1 file changed
russh/src/server/encrypted.rs
@@ -683,7 +683,9 @@ impl Session {
683
}
684
let common = &mut self.common;
685
if let Some(enc) = common.encrypted.as_mut() {
686
- enc.flush_pending_with_writer(&mut common.packet_writer, channel_num)?;
+ new_size -= enc
687
+ .flush_pending_with_writer(&mut common.packet_writer, channel_num)?
688
+ as u32;
689
690
if let Some(chan) = self.channels.get(&channel_num) {
691
chan.window_size().update(new_size).await;
0 commit comments