-
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.
Fixed BindingManager to make sure it doesn't use invalid context (#17393
) * Fixed BindingManager to make sure it doesn't use invalid context BindingManager uses application context passed to NotifyBoundClusterChanged and doesn't care about its life time. Applications delete the context after calling the method, so if the context will be used asynchronously (like for HandleDeviceConnect) it may have invalid value. * Added for BindingManager method that allows to register handler called when context is not used anymore and can be released. * Added releasing context in applications using context release handler. * Fixed releasing the same context multiple times. * Created BindingManagerContext to count all consumers using context and release it in the proper moment. * Added removing pending notification after connection failure. * Moved allocating BindingManagerContext to NotifyBoundCLusterChange * Removed removing pending notification on connect failure * Addressed review comments * Addressed second review comments * Addressed review comments part 3
- Loading branch information
1 parent
a90edd9
commit e86f0ff
Showing
9 changed files
with
128 additions
and
17 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
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
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