forked from openthread/openthread
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[border-agent] track
ForwardContext
and abort TMF txn on disconnect (…
…openthread#11216) This commit updates the Border Agent so that the `CoapDtlsSession` tracks the forwarded CoAP request and the allocated `ForwardContext` to the leader using `Tmf::Agent` in a list. If the CoAP session disconnects before the forwarded request finishes, the pending transaction is explicitly aborted in the session's `Cleanup()` method using `Tmf::Agent::AbortTransaction()`. This ensures that the response handler, `HandleCoapResponse()`, is invoked while the session remains valid.
- Loading branch information
Showing
2 changed files
with
16 additions
and
2 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