Are data channels send/receive chunk size limits still present?

976 views
Skip to first unread message

Szymon Nowak

unread,
Jan 23, 2015, 3:32:51 AM1/23/15
to discuss...@googlegroups.com
Hi,

like in the topic: are data channels send/receive chunk size limits still present in the latest versions of Chrome and Firefox? If they are still there, have they somehow changed in the last year?

I'm thinking about ways to optimize file transfer speed in my app (sharedrop.io), but if I could send data in larger chunks that would be the simplest option.

Cheers,
Szymon

Kaiduan Xie

unread,
Jan 24, 2015, 9:06:15 AM1/24/15
to discuss...@googlegroups.com
Assume SCTP data channel is used, it seems that the limitation is here,

http://code.google.com/p/webrtc/source/browse/trunk/talk/app/webrtc/datachannel.cc

static size_t kMaxQueuedReceivedDataBytes = 16 * 1024 * 1024;
static size_t kMaxQueuedSendDataBytes = 16 * 1024 * 1024; /Kaiduan


--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Szymon Nowak

unread,
Jan 24, 2015, 11:03:15 AM1/24/15
to discuss...@googlegroups.com
Thanks! I really hoped they're gone... Does anybody have any info about QUIC protocol in WebRTC data channels?

Justin Uberti

unread,
Jan 26, 2015, 8:58:33 PM1/26/15
to discuss...@googlegroups.com
FYI, those limits aren't the chunk limits - those are the maximum amount of buffered data, which will exist even after chunk limits are gone.

Follow https://code.google.com/p/webrtc/issues/detail?id=2276 for updates on relaxing the chunk limits.

No updates yet on QUIC for data channels.

Wang Sheng

unread,
Apr 13, 2017, 5:33:19 AM4/13/17
to discuss-webrtc
I don't understand why the "send buffer" can be a problem webrtc in chrome .   Javascript is dynamice object ref language , if the object haven't been sent by underground webrtc, the  object won't be released by  Javascript executing environment .   RTCDataChannel.send should return promise object which will notify the send finished . 
Why datachannel always has such problem. 

在 2015年1月27日星期二 UTC+8上午9:58:33,Justin Uberti写道:
Reply all
Reply to author
Forward
0 new messages