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

Let the client lock open for some time after a success Watchdog call #22

Open
3 tasks
alanjds opened this issue Jul 12, 2018 · 0 comments
Open
3 tasks

Comments

@alanjds
Copy link
Owner

alanjds commented Jul 12, 2018

The _client_invoke_watchdog() call checks for the client lock and then for the watchdog lock, before truly invoking the watchdog.

A possible optimization is to let the client lock acquired for a bit more of time after a success watchdog invocation, as the next clients trying to acquire/check the locks should fail anyway. Why let the 1st lock open for someone just to see that the 2nd lock is closed?

Points of discussion:

  • How much time should it be kept locked?
  • How to unlock after the time passed? Automatically via timeout?
  • How to deal with locks that does not support automatic unlock on timeout?
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