Resulting report from BuildReport() was exceeding the provided maxSize limit#365
Merged
mengelbart merged 1 commit intopion:masterfrom Sep 10, 2025
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #365 +/- ##
==========================================
- Coverage 78.71% 78.63% -0.09%
==========================================
Files 82 82
Lines 5169 5163 -6
==========================================
- Hits 4069 4060 -9
- Misses 927 929 +2
- Partials 173 174 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
|
Nice catch :) @mengelbart what you think? If I don't hear back in a day or two @astroza I will merge myself! |
nils-ohlmeier
approved these changes
Sep 9, 2025
f0a46e9 to
45c8399
Compare
45c8399 to
86db425
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Under packet loss stress, the rfc8888 interceptor was sending packets bigger than the maxSize limit, sometimes even bigger than the network MTU.
I found the next problems:
Ranging over a map is not deterministic (this applies only for the testing code)
maxReportBlocksPerStream could be updated in the last iteration as well as the first one
r.streams is a "ssrc -> log" map, so the
ivariable will never be equal to len(r.streams)-1.iis not a array indexmaxReportBlocksPerStream as maxReportBlocks / (len(r.streams)-1) will exceed the blocks limit. This is specially true when len(r.streams) is a small number
The tests were not catching the actual issue
If you run the new test "MaxreportsPerStream 3 streams" with the old code, you will get