-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Reject candidates from old generation #3113
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
c603752
to
da2580d
Compare
I bet some users have code that tears down the PeerConnection entirely on error. This change could trigger that :/ I agree with rejecting candidates and doing a Or is it doing wrong by users to not return an error? |
da2580d
to
210fef7
Compare
This makes sense, firefox implementation around generations seems extreme, and returning errors already broke few of the tests :) |
1ba737b
to
4771727
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3113 +/- ##
==========================================
- Coverage 78.77% 78.74% -0.03%
==========================================
Files 91 91
Lines 11383 11401 +18
==========================================
+ Hits 8967 8978 +11
- Misses 1932 1936 +4
- Partials 484 487 +3
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:
|
98c1407
to
537b29f
Compare
Okay the error is gone, we still test it, I had to do a refactor to make the linter happy. However I don't know how I feel about this change overall, It aligns with other clients, and it shouldn't break any other client but I'm still not confident. |
Does accepting candidates before the first I think you should merge :) if it breaks things we will hear and fix. I think you have done more than your due diligence |
|
Return an error if a candidate with a username fragment that does not match the username fragment in the remote description is added. This usually indicates that the candidate was generated before the renegotiation.
537b29f
to
465d8bd
Compare
Description
Return an error if a candidate with a username fragment that does not match the username fragment in the remote description is added. This usually indicates that the candidate was generated before the renegotiation.
Last time I tested Chrome silently drops such candidates, firefox returns an error.
Maybe we should also handle "generation" extension.
Reference issue
Fixes #2993
Fixes #2511