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

Configurable RTOMax - fix #181 #303

Merged
merged 2 commits into from
Feb 27, 2024
Merged

Configurable RTOMax - fix #181 #303

merged 2 commits into from
Feb 27, 2024

Conversation

daonb
Copy link
Contributor

@daonb daonb commented Feb 27, 2024

Description

This change adds RTOMax to Config letting the user cap the retransmission timer without breaking compatibility. If RTOMax is 0 the current value of 60 seconds is used.

Reference issue

Start fixing #181, needs another PR in webrtc to support this feature

This change adds RTOMax to Config letting the user cap the
retransmission timer without breaking compatibility.
If RTOMax is 0 the current value of 60 seconds is used.
@daonb daonb linked an issue Feb 27, 2024 that may be closed by this pull request
Copy link

codecov bot commented Feb 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.66%. Comparing base (76ae7f1) to head (5ba9b29).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #303      +/-   ##
==========================================
- Coverage   80.66%   80.66%   -0.01%     
==========================================
  Files          49       49              
  Lines        4123     4133      +10     
==========================================
+ Hits         3326     3334       +8     
- Misses        652      653       +1     
- Partials      145      146       +1     
Flag Coverage Δ
go 80.66% <100.00%> (-0.01%) ⬇️
wasm 66.99% <100.00%> (+0.08%) ⬆️

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.

@edaniels
Copy link
Member

@daonb have you seen the issue go away if you just keep retransmitting? When testing the issue, I saw no progress happen sometimes even when RTO 3-6 happen

@daonb
Copy link
Contributor Author

daonb commented Feb 27, 2024

@edaniels when congestion clears, the issue goes away and no data is lost. I remember once I had to wait 60 second for a key I hit to appear on the terminal. This will allow time critical low bandwidth data channel based peers to be more aggressive with their retransmission policy and keep the peers synced even in bad internet weather.

@edaniels
Copy link
Member

gotcha! In that case we should get this in, especially since it's configurable. I have a feeling 181 is exposing more than one issue that goes beyond RTO, but it looks like we don't have any conclusive data yet.

@edaniels
Copy link
Member

Also @daonb not sure if you're on slack but I started a convo for me you and @enobufs

had to run the linter with --fix to get cleaner code
Copy link
Member

@edaniels edaniels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@edaniels edaniels merged commit 8cfa15d into pion:master Feb 27, 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.

Endless buffering of outbound traffic when network is loaded
2 participants