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

Clarify that datachannel close is reflected remotely #3021

Open
jan-ivar opened this issue Nov 13, 2024 · 2 comments
Open

Clarify that datachannel close is reflected remotely #3021

jan-ivar opened this issue Nov 13, 2024 · 2 comments
Assignees

Comments

@jan-ivar
Copy link
Member

WPT tests confirm this, but the spec is not super clear. The datachannel closing procedure:
image

It's unclear what "When that happens" means: teardown or algorithm being called? Normally we try to separate:

  1. Normative requirement: When X happens, the UA MUST run this algorithm
  2. Normative algorithm: To do X, run this algorithm

Evidence suggests it's 1.: It's called solely from dc.close(), yet prose suggests otherwise: "If the closing procedure has not started yet" and "Unless the procedure was initiated by channel.close,"

@jan-ivar jan-ivar self-assigned this Nov 13, 2024
@jan-ivar
Copy link
Member Author

AFAIK this has been part of datachannels since day one (even predating the "closing" event), so I suspect this is just poorly written. Marking editorial to clarify

@jan-ivar
Copy link
Member Author

RFC 8831 supports this, saying "Closing of a data channel MUST be signaled".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant