-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make latency measurement in ping message robust against time drift
Time drift happens and time going backwards is common on NTP enabled servers. When time drift happens it's not worth it to kill the node session. Change the timestamp payload to use duration against NodeSession specific Instant epoch initialized at creation time. This ensures the timestamp increases monotonically. It can only go backwards when the payload is malformed. Signed-off-by: Kan-Ru Chen <[email protected]>
- Loading branch information
Showing
2 changed files
with
17 additions
and
6 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