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

Revert "Avoid allocation storing last active time" #699

Merged
merged 1 commit into from
May 26, 2024

Conversation

jech
Copy link
Contributor

@jech jech commented May 9, 2024

This reverts commit edb6929.

In that commit, active time was changed from time.Time to
Unix time in order to avoid allocations. Unfortunately, that
has the side effect of discarding the monotonic component of
time.Time, and therefore makes our code vulnerable to stepping
of the system clock.

This carries over #698 to v3. Fixes #697.

This reverts commit edb6929.

In that commit, active time was changed from time.Time to
Unix time in order to avoid allocations. Unfortunately, that
has the side effect of discarding the monotonic component of
time.Time, and therefore makes our code vulnerable to stepping
of the system clock.

Fixes pion#697
Copy link

codecov bot commented May 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.19%. Comparing base (899594c) to head (4636318).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #699   +/-   ##
=======================================
  Coverage   79.19%   79.19%           
=======================================
  Files          41       41           
  Lines        3739     3739           
=======================================
  Hits         2961     2961           
  Misses        547      547           
  Partials      231      231           
Flag Coverage Δ
go 79.19% <100.00%> (ø)
wasm 22.13% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@paulwe paulwe merged commit 7e44037 into pion:master May 26, 2024
14 checks passed
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.

Doubts about discarding monotonic time
2 participants