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

Failure to process a subscription should not unwind the whole stack #217

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ivmarkov
Copy link
Contributor

@ivmarkov ivmarkov commented Dec 1, 2024

Processing a subscription might fail due to not enough buffers or due to an IO error. In both cases, we have a good way to recover actually, which is that the subscription is dropped (and the peer would anyway re-initiate the subscription after a while).

The problem is, current a failure to process a subscription unwinds the whole call-stack and the Matter processing ultimately panics with an error.

This if fix simply catches the errors from processing a concrete subscription, logs it, and then forgets the subscription.

Copy link

semanticdiff-com bot commented Dec 1, 2024

Review changes with  SemanticDiff

Changed Files
File Status
  rs-matter/src/data_model/core.rs  47% smaller

@ivmarkov ivmarkov changed the title Make sure a failure to process a subscription does not break the whol… Failure to process a subscription should not unwind the whole stack Dec 1, 2024
@ivmarkov ivmarkov requested a review from kedars December 1, 2024 12:35
@ivmarkov
Copy link
Contributor Author

ivmarkov commented Dec 1, 2024

@kedars Note that the PR CI fails because #215 is not merged yet.

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

Successfully merging this pull request may close these issues.

1 participant