Skip to content

Commit

Permalink
Add keepalive
Browse files Browse the repository at this point in the history
  • Loading branch information
drunkdream committed Oct 6, 2020
1 parent 6bb3d5c commit ea4bdf1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tmate/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ async def connect(self):
self._channel_writer, self._channel_reader, _ = await ssh_conn.open_session(
subsystem="tmate", env=(), send_env=(), encoding=None
)
ssh_conn.set_keepalive(300, 3)
return True

async def handshake(self):
Expand Down

0 comments on commit ea4bdf1

Please sign in to comment.