-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix KeepSubscription flag handling (#22805)
* Fix KeepSubscription flag handling This fixes the KeepSubscription flag handling to be done right at the onset of processing a SubscribeRequest message. This ensures that matching existing subscriptions are evicted before we attempt to continue further processing and allocation of ReadHandlers. Testing: In addition to the new test in TestRead, validated setting up a sub in chip-tool and then cancelling it by sending another sub to an invalid endpoint: basic subscribe location 0 5 2 0 any subscribe-by-id 0xFFFFFFFF 0xFFFFFFFF 0 5 2 100 Also tested by sending an empty subscribe request with the REPL. * Fixup printf specifier
- Loading branch information
1 parent
af89c48
commit 4355297
Showing
4 changed files
with
76 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters