You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: