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

Fix check for unchanged transceivers in CreateOffer #1658

Closed
wants to merge 1 commit into from

Conversation

jech
Copy link
Member

@jech jech commented Feb 2, 2021

This makes the check in CreateOffer more conservative but also less
fragile. It works around #1656, but I'm not sure it's the underlying
cause (the SDP quoted in that issue looks broken to my untrained eyes).

@codecov
Copy link

codecov bot commented Feb 2, 2021

Codecov Report

Merging #1658 (44a5a20) into master (cddf631) will decrease coverage by 0.07%.
The diff coverage is 80.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1658      +/-   ##
==========================================
- Coverage   75.18%   75.11%   -0.08%     
==========================================
  Files          79       79              
  Lines        5694     5694              
==========================================
- Hits         4281     4277       -4     
- Misses       1035     1037       +2     
- Partials      378      380       +2     
Flag Coverage Δ
go 76.70% <80.00%> (-0.08%) ⬇️
wasm 69.93% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
peerconnection.go 74.33% <80.00%> (+0.08%) ⬆️
dtlstransport.go 67.00% <0.00%> (-2.00%) ⬇️
sdp.go 82.53% <0.00%> (-0.32%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cddf631...c47c1e1. Read the comment docs.

We used to reverse-engineer the list of transceivers from the
generated offer, which is fragile.  Check that the list of transceivers
hasn't been changed instead.
Copy link
Member

@Sean-Der Sean-Der left a comment

Choose a reason for hiding this comment

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

I think we can almost take this, but need to check some stuff.

Right now when generating the offer and we are missing codecs we will generate a non-bundle SDP (which will confuse the remote peer). So I need to investigate this further, but we should leave as a note to make sure this gets done :)

@Sean-Der Sean-Der added this to the 3.1.0 milestone Aug 2, 2021
@Sean-Der
Copy link
Member

Sean-Der commented Aug 3, 2021

I am going to open another PR that gives a better error message for #1702

@Sean-Der Sean-Der closed this Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants