Skip to content

Commit

Permalink
Retry added for lost SSH connections (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
kessler-frost authored Jan 18, 2024
1 parent def5520 commit 34faa49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [UNRELEASED]

### Fixed

- Retry added for lost connections

## [0.24.0] - 2023-10-31

### Changed
Expand Down
1 change: 1 addition & 0 deletions covalent_ssh_plugin/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ async def _attempt_client_connect(self) -> Optional[asyncssh.SSHClientConnection
_retry_errs = (
ConnectionRefusedError,
OSError, # e.g. Network unreachable
asyncssh.ConnectionLost, # e.g. Connection reset by remote host
)

address = f"{self.username}@{self.hostname}"
Expand Down

0 comments on commit 34faa49

Please sign in to comment.