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

Guard node resolving with a lock #515

Merged
merged 3 commits into from
Jan 29, 2024
Merged

Guard node resolving with a lock #515

merged 3 commits into from
Jan 29, 2024

Conversation

marcelveldt
Copy link
Contributor

It's still not entirely clear but it looks like multiple resolves at the same time is not very safe and one action may even be discarded if another attempt comes in. So for example if the server is busy trying to resolve an offline node it may cause commissioning to fail. So for safety reasons put a lock on the resolving. It makes init of nodes somewhat slower but its safer.

@marcelveldt marcelveldt requested review from MartinHjelmare and removed request for MartinHjelmare January 29, 2024 18:36
@marcelveldt marcelveldt marked this pull request as draft January 29, 2024 18:59
@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 Jan 29, 2024
@marcelveldt marcelveldt marked this pull request as ready for review January 29, 2024 19:04
@marcelveldt marcelveldt merged commit 874a7bf into main Jan 29, 2024
4 checks passed
@marcelveldt marcelveldt deleted the resolve-lock branch January 29, 2024 19:43
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