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

limit read buffer size to 9000B #172

Merged
merged 1 commit into from
Feb 3, 2024
Merged

Conversation

sukunrt
Copy link
Member

@sukunrt sukunrt commented Feb 2, 2024

net.Interfaces() contains the loop back interface whose MTU is 65kB. The RFC has a stricter limit of 9000 bytes. This saves us some space.

Ideally ice agents in pion/ice would share a single mdns connection but that's a much larger change that we can take up later and save us more space.

@Sean-Der
Copy link
Member

Sean-Der commented Feb 3, 2024

Thank you @sukunrt LGTM!

Copy link

codecov bot commented Feb 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3c230f8) 63.70% compared to head (d51aa08) 64.08%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #172      +/-   ##
==========================================
+ Coverage   63.70%   64.08%   +0.38%     
==========================================
  Files           1        1              
  Lines         281      284       +3     
==========================================
+ Hits          179      182       +3     
  Misses         72       72              
  Partials       30       30              
Flag Coverage Δ
go 64.08% <100.00%> (+0.38%) ⬆️

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.

net.Interfaces() contains the loop back interface
whose MTU is 65kB. The RFC has a stricter limit of
9000 bytes. This saves us some space.
@Sean-Der Sean-Der merged commit 1d4f9bc into pion:master Feb 3, 2024
13 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.

None yet

2 participants