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

Some small tweaks to the subscripions logic #676

Merged
merged 3 commits into from
Apr 29, 2024
Merged

Conversation

marcelveldt
Copy link
Contributor

While we're still hunting down the cause for the continuous "subscription failed with Error: 50, re-subscribing in 0 ms" errors where the subscription of a node suddenly gets lost with no reason, I found a few tweaks. Not really solutions to the issue but still good to apply.

  • Increase subscription ceiling for WiFi devices to 60 seconds (same as mains powered thread devices) as we see the error mostly for WiFi devices.

  • Remove keepSubscriptions on the subscription itself as its kind of redundant with the autoResubscribe and saves a bit of stress on the device itself (hopefully) - though this is still very unclear.

  • Remove fabricFiltered=False (so reinstate it being set to True) on the subscription itself as the only reason we were doing that is to have an up to date list of fabrics at all times. Removing it in the sub saves a little bit of stress on the device.

  • Refresh the node's fabrics in the diagnostics itself to ensure we have the latest info as an alternative for having the fabricFiltered=False in the sub.

@marcelveldt marcelveldt added the maintenance Code (quality) improvement or small enhancement which not a new feature label Apr 24, 2024
@marcelveldt
Copy link
Contributor Author

CI is failing but that is a global issue (signing issue on the ubuntu used for CI)

matter_server/client/client.py Outdated Show resolved Hide resolved
@marcelveldt marcelveldt merged commit b021322 into main Apr 29, 2024
4 checks passed
@marcelveldt marcelveldt deleted the change-subscriptions branch April 29, 2024 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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