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

Observe: Fix coap_free_context() assert when active observe #577

Merged
merged 1 commit into from
Feb 24, 2021

Conversation

mrdeep1
Copy link
Collaborator

@mrdeep1 mrdeep1 commented Dec 8, 2020

src/net.c:

Call coap_delete_all_resources() (which may send a CON observe bumping a
session ref count) before coap_delete_all() to remove any CON transmissions
that are still in flight in cop_free_context().

src/resource.c:

Delete observer if GET handler does not return a 2.xx code.

src/net.c:

Call coap_delete_all_resources() (which may send a CON observe bumping a
session ref count) before coap_delete_all() to remove any CON transmissions
that are still in flight in cop_free_context().

src/resource.c:

Delete observer if GET handler does not return a 2.xx code.
@obgm obgm merged commit 35dbc32 into obgm:develop Feb 24, 2021
@mrdeep1 mrdeep1 deleted the observer_fix branch February 24, 2021 09:16
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.

2 participants