-
Notifications
You must be signed in to change notification settings - Fork 214
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
Client hangs forever if the daemon crashes #47
Comments
Just a quick thought: The daemon could touch a file periodically and the client could check if the file was touched recently. If not the daemon most likely crashed. |
Given we have a socket connection, we could simply send a simple keep-alive message from the daemon to the client every second (if nothing has been sent). On the client side, if we haven't received anything since 3 seconds, we consider the daemon crashed. |
Yeah, I also thought of that |
The daemon may crash for whatever reason, even without calling shutdown hooks. There should be a way for the client to find out that the daemon is down (so that client itself can exit).
The text was updated successfully, but these errors were encountered: