Test if Tunneled Connection is Alive

19 views
Skip to first unread message

xbrianh

unread,
Nov 29, 2023, 4:25:51 PM11/29/23
to asyncssh-users
Is there a canonical way to test if a tunneled connection is alive?

For instance:

connection = await asyncssh.connect(addr, tunnel=tunnel_connection)
if not connection.is_alive:
    # deal with it

Thanks,
Brian
Reply all
Reply to author
Forward
0 new messages