Skip to content

MEDIA-4876: add support for bigger data channel message size#409

Open
reddvl1980 wants to merge 24 commits intomasterfrom
MEDIA-4876-pr
Open

MEDIA-4876: add support for bigger data channel message size#409
reddvl1980 wants to merge 24 commits intomasterfrom
MEDIA-4876-pr

Conversation

@reddvl1980
Copy link
Copy Markdown
Contributor

@reddvl1980 reddvl1980 commented Apr 7, 2026

  • Introdicing "PoolBuffer" - multi-chunk memory buffer to store sctp messages.
  • Code is optimized so that when the message fit into single chunk copying on readong is not performed.
  • For temporary storage memory::Array<2048> is bing used so that if the message size fits 2048 bytes it's allocated on stack.
  • Conference actions now return data['max-message-size'] - needed by SFU to return SDP to the c9 Trader Client. Max-message-size is omitted in barbell replys.
  • Max message size is configured via config.sctp.maxMessageSize with the default value of 2048
  • Unit tests added for PoolBuffer, sending pipeline, full forwarding pipline (requried adding of Engine mock).

…uffer to

   differentiate from DataReceiver::onSctpMessage
Allow provide preallocated "master chunk" to PoolBuffer c'tor to
optmize makeUniquePoolBuffer(): now PoolBuffer and "master chunk"
use the same pre-allocated pool packet.
Make use of master chunk capacity to store some actual data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants