Skip to content

Commit

Permalink
ssh: catch EOFError (#420)
Browse files Browse the repository at this point in the history
Fix #417.
  • Loading branch information
njzjz committed Dec 13, 2023
1 parent 0b5ea39 commit 123b74b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpdispatcher/contexts/ssh_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def exec_command(self, cmd):
assert self.ssh is not None
try:
return self.ssh.exec_command(cmd)
except (paramiko.ssh_exception.SSHException, socket.timeout) as e:
except (paramiko.ssh_exception.SSHException, socket.timeout, EOFError) as e:
# SSH session not active
# retry for up to 3 times
# ensure alive
Expand Down

0 comments on commit 123b74b

Please sign in to comment.