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

Use keepalive ping between frontend and backend #274

Open
trisyoungs opened this issue Nov 9, 2023 · 1 comment
Open

Use keepalive ping between frontend and backend #274

trisyoungs opened this issue Nov 9, 2023 · 1 comment
Labels
Backend Related to the backend Feature Request New feature or request Frontend Related to the frontend

Comments

@trisyoungs
Copy link
Member

If the frontend crashes for whatever reason, the backend process gets left behind, leading to errors when running the frontend again.

We can implement a keepalive ping between the frontend and the backend - the frontend can continually ping the backend every 20 seconds, say, and if the backend doesn't hear from the frontend within 30 seconds it can gracefully shut itself down.

Related to #238.

@trisyoungs
Copy link
Member Author

This is going to be difficult to implement in a fully cross-platform way. The signals library for python gets us most of what we would need on Linux, but not Windows.

@trisyoungs trisyoungs added Feature Request New feature or request Backend Related to the backend Frontend Related to the frontend labels Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Related to the backend Feature Request New feature or request Frontend Related to the frontend
Projects
None yet
Development

No branches or pull requests

1 participant