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

Improve handling of reseted hosts #117

Open
daonb opened this issue Jan 5, 2021 · 1 comment
Open

Improve handling of reseted hosts #117

daonb opened this issue Jan 5, 2021 · 1 comment
Labels
💵 Funded on Issuehunt This issue has been funded on Issuehunt enhancement New feature or request
Milestone

Comments

@daonb
Copy link
Contributor

daonb commented Jan 5, 2021

Issuehunt badges

**What's missing? **
When I'm reconnecting to a server that's just been restarted , I get a message
"data channel open but no first message" and nothing happens.

It happens because Terminal7 stores the server's old state from before the
reset and tries to re-open old panes.
To solve the issue we need to add a session hash to the state and
ensure it's as expect.
On first connection, when the state is empty Terminal7 will randomly generate
a hash and add it to the state under the session key.

When Terminal7 reconnects to a host it will first get the state using the
get_payload API endpoint to ensure the session hasn't changed.
If it did (or if there's no session key) Terminal7 will clear his state,
start using the one from the server and notify the user: "fresh webexec session".


IssueHunt Summary

Backers (Total: $100.00)

Become a backer now!

Or submit a pull request to get the deposits!

Tips

@daonb daonb added the enhancement New feature or request label Jan 5, 2021
@daonb daonb changed the title Improved handling of resented hosts Improved handling of reseted hosts Jan 5, 2021
@daonb daonb modified the milestones: 1.0.0, 0.12.1 Jan 12, 2021
@daonb daonb changed the title Improved handling of reseted hosts Improve handling of reseted hosts Jun 13, 2021
@issuehunt-oss
Copy link

issuehunt-oss bot commented Aug 19, 2021

@daonb has funded $100.00 to this issue.


@issuehunt-oss issuehunt-oss bot added the 💵 Funded on Issuehunt This issue has been funded on Issuehunt label Aug 19, 2021
@daonb daonb modified the milestones: 1.0.0, 1.1 Sep 1, 2022
@eyal-sasson eyal-sasson mentioned this issue Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💵 Funded on Issuehunt This issue has been funded on Issuehunt enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant