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

Desktop: Add ping checks for desktop #3062

Closed
wants to merge 2 commits into from
Closed

Conversation

mjangda
Copy link
Member

@mjangda mjangda commented Feb 4, 2016

Electron will periodically send pings to Calypso to make sure the server is still running. If we fail to get a response, Electron can detect that and handle accordingly.

In the same vein, Electron may die (e.g. kill -9) but Calypso can continue running, which is not great.

When a ping comes in (where the value of the ping is the frequency in ms for the pings), we ping back with that same frequency. We also start a killswitch that will exit the process if we don't get a ping back in a certain amount of time. This way, Calypso can kill itself if its parent process disappears.

See https://github.com/Automattic/wp-desktop/issues/51 for testing instructions.

@mjangda mjangda added [Status] In Progress [Feature] WordPress Desktop App Features and improvements related to the WordPress Desktop App. labels Feb 4, 2016
Checking when forked process and sending boot signal.
Electron will periodically send pings to Calypso to make sure the server is still running. If we fail to get a response, Electron can detect that and handle accordingly.

In the same vein, Electron may die (e.g. `kill -9`) but Calypso can continue running, which is not great.

When a ping comes in (where the value of the ping is the frequency in ms for the pings), we ping back with that same frequency. We also start a killswitch that will exit the process if we don't get a ping back in a certain amount of time. This way, Calypso can kill itself if its parent process disappears.
@mjangda mjangda force-pushed the update/desktop-pong branch from b428ef9 to f648a4a Compare February 4, 2016 00:11
@mjangda mjangda added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. and removed [Status] In Progress labels Feb 4, 2016
@mjangda
Copy link
Member Author

mjangda commented Feb 9, 2016

No longer necessary, see Automattic/wp-desktop#64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] WordPress Desktop App Features and improvements related to the WordPress Desktop App.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants