Skip to content

[Bug]: Data Channels Should Have Symmetric Reliability By Default #2162

@geoffviola

Description

@geoffviola

Please confirm you have already done the following

  • I have searched the repository for related/existing bug reports
  • I have all the details the issue requires

Please answer the following prompt

  • This issue is replicable using the unmodified sample application

Describe the bug

When a peer initiates a connection, the default behavior is to ignore the reliability data. Therefore, the reliability is defaulted to reliable and ordered.

rfc8832 states

. Protocol Overview

The Data Channel Establishment Protocol is a simple, low-overhead way
to establish bidirectional data channels over an SCTP association
with a consistent set of properties.

The set of consistent properties includes:

  • reliable or unreliable message transmission. In case of
    unreliable transmissions, the same level of unreliability is used.

Other libraries like pion datachannel do read those bytes. They set the reliability to be symmetric by default.

Expected Behavior

It's expected for the default data channel reliability to have symmetric reliability.

Current Behavior

It's currently set to reliable and ordered.

Reproduction Steps

Create data channel via peer connection. Check the reliability of the outgoing data channel.

WebRTC C SDK version being used

v1.7.3

If it was working in a previous version, which one?

No response

Compiler and Version used

Clang 15

Operating System and version

Ubuntu 22.04.5 LTS

Platform being used

x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions