Closed Bug 1425697 Opened 8 years ago Closed 8 years ago

Data Channel remote maximum message size slightly incorrect

Categories

(Core :: WebRTC: Signaling, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla59
Tracking Status
thunderbird_esr52 --- wontfix
firefox-esr52 --- wontfix
firefox57 --- wontfix
firefox58 --- fixed
firefox59 --- fixed

People

(Reporter: lgrahl, Assigned: drno)

Details

Attachments

(1 file)

This should be a quick & easy fix. The default remote maximum message size is 65536 and not 65535. (Apologies for messing this up in the first place.)
Would it be possible to backport this trivial change to FF >= 57? Otherwise, we will need to add a workaround to adapter (https://github.com/webrtc/adapter/pull/702).
Flags: needinfo?(drno)
Attachment #8937651 - Flags: review?(lennart.grahl)
We might be able to uplift this to 58 Beta. But we won't be able to uplift this change to 57, as it's not a security fix. BTW: Lennart is there a reference (e.g. spec) for this change from 65535 to 65536?
Assignee: nobody → drno
Flags: needinfo?(drno) → needinfo?(lennart.grahl)
It always was 65536. I just messed up and I guess everyone just assumed it is correct. https://tools.ietf.org/html/draft-ietf-mmusic-sctp-sdp-26#section-6.1 "If the SDP 'max-message-size' attribute is not present, the default value is 64K." - which of course is 2^16 and not 2^16 - 1. I'll add special treatment of the default remote MMS for FF 57 in adapter.
Flags: needinfo?(lennart.grahl)
Comment on attachment 8937651 [details] Bug 1425697: WEBRTC_DATACHANNEL_MAX_MESSAGE_SIZE_REMOTE_DEFAULT++. https://reviewboard.mozilla.org/r/208350/#review214136
Attachment #8937651 - Flags: review?(lennart.grahl) → review+
Pushed by drno@ohlmeier.org: https://hg.mozilla.org/integration/autoland/rev/efee3a8c1124 WEBRTC_DATACHANNEL_MAX_MESSAGE_SIZE_REMOTE_DEFAULT++. r=lennart.grahl+594092
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Please request uplift to beta when you get a chance.
Flags: needinfo?(drno)
Comment on attachment 8937651 [details] Bug 1425697: WEBRTC_DATACHANNEL_MAX_MESSAGE_SIZE_REMOTE_DEFAULT++. Approval Request Comment [Feature/Bug causing the regression]: bug 979417 [User impact if declined]: WebRTC services need to use shims to fix the default buffer size for data channels to the correct value to make the behavior spec compliant. [Is this code covered by automated tests?]: Yes [Has the fix been verified in Nightly?]: No [Needs manual test from QE? If yes, steps to reproduce]: No [List of other uplifts needed for the feature/fix]: N/A [Is the change risky?]: No [Why is the change risky/not risky?]: We only increase the default buffer size by one more byte. [String changes made/needed]: N/A
Flags: needinfo?(drno)
Attachment #8937651 - Flags: approval-mozilla-beta?
Comment on attachment 8937651 [details] Bug 1425697: WEBRTC_DATACHANNEL_MAX_MESSAGE_SIZE_REMOTE_DEFAULT++. Fix a WebRTC data channel issue. Beta58+.
Attachment #8937651 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: