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

Add auto-reconnect option #146

Open
smpartlow opened this issue Oct 3, 2024 · 2 comments
Open

Add auto-reconnect option #146

smpartlow opened this issue Oct 3, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@smpartlow
Copy link
Member

I often use tnz.zti to connect to my host systems, replacing IBM Person Communications (PCOMM). I would be nice to have it auto-reconnect to those systems after I lose connectivity (or logoff) such that it's ready for me to log in again. Right now I have to type in goto <hostname> each time I am disconnected.

@najohnsn najohnsn added the enhancement New feature or request label Oct 3, 2024
@smpartlow
Copy link
Member Author

To add a little more doc: I have multiple host systems in a session (set up via a --rcfile with multiple goto statements in it) and so when I start up my machine again they all went away and I get (actual host names redacted):

ConnectionAbortedError: [WinError 1236] The network connection was aborted by the local system
SESLOST = 'HOST1'
ConnectionAbortedError: [WinError 1236] The network connection was aborted by the local system
SESLOST = 'HOST2'
ConnectionAbortedError: [WinError 1236] The network connection was aborted by the local system
SESLOST = 'HOST3'
ConnectionAbortedError: [WinError 1236] The network connection was aborted by the local system
SESLOST = 'HOST4'
ConnectionAbortedError: [WinError 1236] The network connection was aborted by the local system
SESLOST = 'HOST5'
Session: NONE>

It would be great if I could issue a simple goto again or some other command like reconnect to get them back up again. Or better, let the sessions remain (disconnected) until I go to them again and they try to reconnect at that time.

@najohnsn
Copy link
Member

I think that auto-reconnect would be a great enhancement. In the meantime, for the case you mentioned where sessions are established by an rcfile and you lost all of them, you could enter source <rcfile> to re-establish them (<rcfile> is the name of your rcfile). It's not exactly reconnect as I imagine it since your current environment (i.e. variables and terminal size) will influence the re-establishment of the sessions, but it may be close enough.

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

2 participants