Skip to content

Commit

Permalink
set keepalive on ssh to prevent silent connection failures
Browse files Browse the repository at this point in the history
  • Loading branch information
mjurbanski-reef committed Aug 27, 2024
1 parent 42fefcd commit 033d6ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/integration/tools/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ def ssh_connect(hostname: str, port: int = 22, username: str | None = None) -> p
look_for_keys=True,
allow_agent=True,
)
transport = client.get_transport()
assert transport is not None # for mypy; after connect, transport is set
transport.set_keepalive(5)
return client


Expand Down

0 comments on commit 033d6ad

Please sign in to comment.