-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve monitoring of DTLS peers' activity using monotonic timer
The previous implementation of monitoring DTLS peers' activity relied on the absolute system time to track the last activity timestamp. However, this approach had the unintended consequence of being affected by changes in the system time. For instance, modifying the system time by an interval equivalent to the DTLS inactivity timeout would trigger a false inactivity timeout and result in the closure of the DTLS session. To address this issue, the monitoring mechanism has been updated to utilize a monotonic timer. This timer is independent of system time changes and provides a more accurate measure of the duration of inactivity. By using a monotonic timer, the DTLS session will only be closed if no activity occurs within the specified timeout period, regardless of any changes in the system time. This refactor improves the reliability and accuracy of DTLS peer monitoring, ensuring that the DTLS sessions are closed based on actual inactivity rather than being influenced by system time adjustments.
- Loading branch information
1 parent
b2fae09
commit 051b52c
Showing
25 changed files
with
934 additions
and
200 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
Oops, something went wrong.