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

Infinite loops possible with multiple forwarding services on a system #26

Open
wentam opened this issue Sep 21, 2022 · 0 comments
Open

Comments

@wentam
Copy link
Owner

wentam commented Sep 21, 2022

If there are multiple services on a system forwarding inhibit events, an infinite loop of forwarding back and forth can be created. This situation can easily be produced by running 3 uinhibitd instances at the same time.

We might have enough identifying information to know that an inhibit is the 'same' event as one that already exists, and to ignore the event.

If not, a loop detection heuristic would be needed.

This isn't practically a big deal as I don't see realistic use-cases where such an infinite loop would be present, but we should still handle this for durability.

Probably try to build a unit test for the situation.

@wentam wentam changed the title Infinite loops possible Infinite loops possible with multiple forwarding services on a system Sep 21, 2022
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