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

Fix report timestamps #305

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mengelbart
Copy link
Contributor

Description

This is not really a bug but annoying to receivers of our reports. If the ticker ticks, but then another packet is handled first, the timestamp of the report (from the ticker) will be before the receive timestamp of the last packet in the report. In that case, the report contains a 0x1FFF value to indicate that the packet was received after the report. However, we know the timestamp and can send it, if we take the timstamp after entering the case branch. At that time, it is guaranteed, that no additional packets can be added to the report.

This is not really a bug but annoying to receivers of our reports. If
the ticker ticks, but then another packet is handled first, the
timestamp of the report (from the ticker) will be before the receive
timestamp of the last packet in the report. In that case, the report
contains a 0x1FFF value to indicate that the packet was received after
the report. However, we know the timestamp and can send it, if we take
the timstamp after entering the case branch. At that time, it is
guaranteed, that no additional packets can be added to the report.
@mengelbart mengelbart force-pushed the fix-rfc8888-interceptor-timing branch from 4efe05c to e1f3c06 Compare January 17, 2025 17:48
Copy link

codecov bot commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.56%. Comparing base (e187410) to head (e1f3c06).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #305      +/-   ##
==========================================
+ Coverage   71.31%   71.56%   +0.25%     
==========================================
  Files          80       80              
  Lines        4483     4484       +1     
==========================================
+ Hits         3197     3209      +12     
+ Misses       1153     1145       -8     
+ Partials      133      130       -3     
Flag Coverage Δ
go 71.32% <100.00%> (+0.14%) ⬆️
wasm 69.51% <100.00%> (+0.11%) ⬆️

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants