matrix-org / matrix-org/waterfall

Proper handling of outgoing data channel messages (buffering, large messages)

Open
#133 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

T-Defect T-Task X-Needs-Investigation
Dominant language
Go
Stars
105
Forks
5
PR merge metrics
No merged PRs in 30d

Description

It looks like sending a message on a data channel is a blocking operation (due to the I/O involved in it), in my non-scientific tests it turned out that sending a message on a data channel may sometimes take 30ms. That's not a problem in the majority of cases, but when the conference gets large and participants exchange messages over the data channel, it can delay the processing of the incoming To-Device messages significantly.


UPD:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by tracing the outgoing data-channel send path and its interaction with incoming To-Device message processing; reproduce the delay with large messages and sessions exceeding 50 participants. Done should mean outgoing messages are buffered appropriately and large sends no longer significantly delay incoming processing.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
audio-video-rtc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.