diff --git a/russh/src/client/mod.rs b/russh/src/client/mod.rs index c77281a1..a807a093 100644 --- a/russh/src/client/mod.rs +++ b/russh/src/client/mod.rs @@ -776,6 +776,7 @@ impl Session { while !self.common.disconnected { tokio::select! { () = &mut time_for_keepalive => { + time_for_keepalive.as_mut().reset(self.common.config.keepalive_deadline()); self.send_keepalive(true); } r = &mut reading => {