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

Add watchdog feature #9

Open
JustinAzoff opened this issue Dec 14, 2015 · 1 comment
Open

Add watchdog feature #9

JustinAzoff opened this issue Dec 14, 2015 · 1 comment

Comments

@JustinAzoff
Copy link
Contributor

The main loop may block for some external reason. dumbno should use signal.alarm with a few minute timeout inside the main loop. Nothing dumbno does should take longer than a few seconds, let alone a few minutes.

The best thing to do in the case of something freezing is to commit suicide and restart. There is no harm in doing so since dumbno itself is stateless.

@JustinAzoff
Copy link
Contributor Author

We ran into this again the other day after doing an upgrade on the switch. The underlying problem is likely in the jsonrpc lib somewhere, but having a global watchdog timeout would work even better.

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

No branches or pull requests

1 participant