Open Bug 1113030 Opened 11 years ago Updated 3 years ago

Disabled m-lines cause problems

Categories

(Core :: WebRTC, defect, P5)

36 Branch
defect

Tracking

()

People

(Reporter: drno, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

When the answerer rejects the data channel portion the data channel by setting the port in the m-line to zero the data channel still gets established.
Attached patch data_channel_reject_test.patch (obsolete) — Splinter Review
A test which sets the port for m=application in the answer to zero, but still the data channel gets established and data can be send through the data channel.
Note: this is directly modifying the SDP; in a real rejection no datachannel could be established as there'd be no port open at the answer side to connect DTLS to. For that matter: how could this possibly be happening here? Even if the Offerer ignores the port 0 in the answer, it has no port to connect to - so I think the editing of the SDP here must not be valid - either it's already been installed behind your back, or the editing isn't affecting the copy that get used by the Offerer side. Please check what's getting installed at the Offerer side (signaling:5 I presume, or via gdb)
Flags: needinfo?(drno)
(In reply to Randell Jesup [:jesup] from comment #2) > Note: this is directly modifying the SDP; in a real rejection no datachannel > could be established as there'd be no port open at the answer side to > connect DTLS to. For that matter: how could this possibly be happening > here? What about with BUNDLE?
(In reply to Eric Rescorla (:ekr) from comment #3) > (In reply to Randell Jesup [:jesup] from comment #2) > > Note: this is directly modifying the SDP; in a real rejection no datachannel > > could be established as there'd be no port open at the answer side to > > connect DTLS to. For that matter: how could this possibly be happening > > here? > > What about with BUNDLE? That would be a question, but as this test doesn't use BUNDLE, it strongly implies that the SDP modification never took affect in the first place (i.e. the bug is in the test framework, not the code).
Does this happen on Nightly? I would expect this to be fixed by the sdparta rewrite.
Test video rejection as well. This test sets the video m-line port to zero in the offer and drops ICE candidates for the video m-line so the answerer doesn't know video ports on the offerers side.
Attachment #8538323 - Attachment is obsolete: true
Randel is right, that this was without Bundle. I'm going to test it later with Bundle. But I extended the test a little further and disabled the m-line in the offer and the answer. Even though the answerer gets an disabled m-line the answer contains an active m-line. We also happily accept ICE candidates for disabled m-lines (without any errors in the logs - so this is not problem that candidates errors are not reported back to JS land). Further more the new test also drops the ICE candidates for the dis-abled m-line. So the answerer does not know where to send video to. And even though the video m-line also gets disabled in the answer as well the video stream gets established. So I think we seem to have a bigger issue with disabled m-lines.
Flags: needinfo?(drno)
Summary: Rejecting a data channel gets ignored → Disabled m-lines are ignored
So with Byron fix in bug 1016476 the behavior changes quite a bit here. A disabled m-line gets reflected as disabled (with a not ideal rtpmap, see bug 1113443 for that). And there does not seem to connection for the disabled m-section. Remaining issues: - we still happily accept ice candidates for disabled m-lines. I tend to think we should return errors for that. But I could get convinced otherwise. - we still generate ice candidates for disabled m-lines. - onAddStream never fires on the answerer side if the offer contained a disabled m-section.
Summary: Disabled m-lines are ignored → Disabled m-lines cause problems
backlog: --- → webRTC+
Rank: 45
Priority: -- → P4
Mass change P4->P5 to align with new Mozilla triage process.
Priority: P4 → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: