Re: [webrtc-pc] Should RTCDataChannel.send be allowed to throw synchronously for not enough buffer space (#3097)

But doesn't send step 6 already define that exact case in alignment with Chromium behaviour? I wouldn't read any optionality into it either, so my understanding is that implementations should do exactly that. I do see some leeway for implementations that don't have a fixed buffer and just don't throw. But raising an error event asynchronously in case the data would blow up the queue seems out of spec to me.

On a potential minimum limit: What's clear is that the buffer space should be greater but at least equal to whatever is declared as `maxMessageSize`. Since waiting for a small buffer to drain to zero is most likely a performance issue, the buffer probably should be several times greater than `maxMessageSize` if `maxMessageSize` is small.

-- 
GitHub Notification of comment by lgrahl
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/3097#issuecomment-4050474083 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 12 March 2026 22:01:54 UTC