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

State of PTY is not maintained when reopening the old PTY process #175

Open
vikramaditya-singh opened this issue Dec 15, 2017 · 0 comments

Comments

@vikramaditya-singh
Copy link

Mentioned below is steps to replicate the issue:
a) Commented 'socket' disconnect code to disable killing of PTY process
b) Added code to save pty.fork(...) object in an array to get the last PTY process for the user
b) put session timeout in config file to any value, say 300000
c) Restart TTY application
d) Open a PTY session in the browser.
e) Type few commands
d) Disconnect the network and reconnect it within 300000 milliseconds (5mins)
e) Open the terminal again
f) Session is maintained and same PTY process is up, but the executed commands are lost.(Not visible in PTY)

Do you have the solution to retain the state of PTY process so that last executed commands and its output is visible too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant