Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect disconnected SSH sessions #245

Open
daonb opened this issue Jul 6, 2022 · 0 comments
Open

Detect disconnected SSH sessions #245

daonb opened this issue Jul 6, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@daonb
Copy link
Contributor

daonb commented Jul 6, 2022

Describe the bug
When coming bug from a sleep, T7 assumes connected ssh sessions are still on.
If the active gate was disconnected the screen freeze

To Reproduce
Steps to reproduce the behavior:

  1. Launch app
  2. Connect to a server using ssh
  3. put the iPad to sleep
  4. count till down
  5. wake up
  6. See frozen T7

Additional context
A possible fix is to send an SSH ping whenever the app is back from sleep and
validate the connection is still on.
The pinger can be based on ssh2_echo.c

The code sends a 'cat' command, and then writes a lot of data to it only to
check that reading the returned data sums up to the same amount.

probably best to do it in a new dedicated channel.

@daonb daonb added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant