Closed karaziox closed 5 months ago
Thank you so much @karaziox I am merging this now!
This is a pretty deep change! Anything else with Pion you would like to see improved? What else do you think could be better? Would love to hear what else you are looking at :)
Attention: Patch coverage is 14.28571%
with 12 lines
in your changes are missing coverage. Please review.
Project coverage is 78.68%. Comparing base (
67cc918
) to head (82e739b
).
Files | Patch % | Lines |
---|---|---|
candidate_relay.go | 0.00% | 12 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
Today, all relay candidates from Pion have the same priority. This PR attempts to reproduce libwebrtc's behavior, where the TURN servers candidates priority is based on the underlying relay protocol. UDP are preferred over TCP, which are preferred over the TLS options.
We reuse the same factors as libwebrtc: https://github.com/mozilla/libwebrtc/blob/1389c76d9c79839a2ca069df1db48aa3f2e6a1ac/p2p/base/turn_port.cc#L61