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

Detect deadlock on node subscription setup #613

Merged
merged 4 commits into from
Mar 1, 2024
Merged

Conversation

marcelveldt
Copy link
Collaborator

So we've seen a few logs that worry us as the node subscription was started but then never completed. No stacktrace/error, no timeout, no success. Seems that it just deadlocks.

This was however in all cases Nanoleaf devices, that are known to be unstable and reset often.
What if the device resets just while setting up subscriptions?
It's worth investigating and at least protect against. This adds a timeout to setting up the subscription and logs a warning if the timeout expired.

@marcelveldt marcelveldt added bugfix Pull request that fixes a (known) issue/bug maintenance Code (quality) improvement or small enhancement which not a new feature labels Mar 1, 2024
@marcelveldt marcelveldt merged commit 29a8868 into main Mar 1, 2024
4 checks passed
@marcelveldt marcelveldt deleted the detect-deadlock branch March 1, 2024 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Pull request that fixes a (known) issue/bug maintenance Code (quality) improvement or small enhancement which not a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants