-
Notifications
You must be signed in to change notification settings - Fork 192
Fix relay candidate preference #880
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #880 +/- ##
==========================================
+ Coverage 88.36% 88.49% +0.13%
==========================================
Files 43 43
Lines 5509 5512 +3
==========================================
+ Hits 4868 4878 +10
+ Misses 447 440 -7
Partials 194 194
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:
|
ca92972 to
2f7c6dd
Compare
|
@amanakin thank you so much, I'm reviewing this right now. I see that contribute to pion frequently, would you like an invite to the org, no exceptions and nothing heavy-weight is required :) but we would like your reviews and it will let you run the CI yourself. |
|
@JoTurk Hey! Sure, happy to help. :) Regarding this PR, I've started a thread in discord for discussion. libwebrtc's preference for DTLS looks weird.. |
|
yeah i was reading the discord discussion, and libwebrtc impl. |
JoTurk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code is okay, not super sure about the behavior change and preference. but it seems fine and it makes sense to match libwebrtc.
|
pion can probably change the specific local type preference without much issue. These days we have "relayProtocol" exposed on candidates so folks should look for that instead of reverse-engineering as was required in the old days |
|
Well, looks like the webrtclib maintainers agree that DTLS should have lower priority than UDP |
JoTurk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good for me, i think you should wait few days for other inputs :)
Description
This fixes the handling of relay preferences. Previously,
LocalPreferenceforCandidateRelaywas not being called, causing all relay protocols to have the same priority. This change introduces protocol-based preferences (UDP: 3, DTLS: 2, TCP: 1, TLS: 0).Reference issue
Fixes #879