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

NFR: Keep Alive - Ping Pong #182

Open
ruudboon opened this issue Dec 17, 2020 · 0 comments
Open

NFR: Keep Alive - Ping Pong #182

ruudboon opened this issue Dec 17, 2020 · 0 comments

Comments

@ruudboon
Copy link

With unstable connections it sometimes happens that the connection is reset or you find out too late that the connection isn't reachable. I'm looking for a solution that actively checks the connection with the host and automatically tries to reconnect.

We builded a small prototype to demonstrate a solution.
It's based on a message that is delivered every second with the Scipting Name "keepalive". After the first message we start a timeout of 2 seconds. If a new message comes in we reset the timer.
Screenshot 2020-12-17 at 14 33 55

When we break the connection to the host and the timeout expires after 2 seconds we trigger a disconnect and connect to reestablish the connection.

I wouldn't mind delivering a proper pull request but would like some directions how to implement this in a proper way.

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

No branches or pull requests

1 participant