JumpSSH icon indicating copy to clipboard operation
JumpSSH copied to clipboard

Add optional heartbeat param to run_cmd to check/handle disconnection during long running commands

Open acohen716 opened this issue 3 years ago • 0 comments

We've noticed that without specifying a timeout to run_cmd, if a remote host is disconnected (due to host network failure, reboot etc), the command never returns and must be force quit.

I propose adding an optional parameter (ex. heartbeat) that if true, will simply check here whether self.is_active and if not raise a ConnectionError.

acohen716 avatar Jan 19 '22 09:01 acohen716