- From: youennf via GitHub <noreply@w3.org>
- Date: Tue, 17 Mar 2026 09:19:00 +0000
- To: public-webrtc-logs@w3.org
> my interpretation of the spec does not allow for implementations to asynchronously error because a synchronous call added too much data to a send queue. Is that in alignment with what you're saying should be clarified?
Yes, that is what I'd like to clarify.
The spec could be changed to something like:
- If the byte size of data exceeds the value of maxMessageSize... throw...
- If the buffered amount increased by byte size exceeds the size of the channel's underlying data transport buffer, throw...
- In parallel, run the steps:
- Queue data for transmission on channel's underlying data transport buffer. This operation cannot fail.
- When possible, send the queued data. If sending fails (not related to queueing the data, queue a task to fire an error event).
> Side note: [@jesup](https://github.com/jesup) added an interesting point on `Blob`s: [web-platform-tests/wpt#58246 (comment)](https://github.com/web-platform-tests/wpt/issues/58246#issuecomment-4052591804)
> We may need slightly different rules for `Blob` and require implementations to do the buffering under the hood there.
Interesting.
My understanding is that Chromium's implementation will synchronously fail, while it could be possible to have an implementation write the data at a slow enough pace to not overbuffer the sctp buffer.
This seems worth its own issue.
--
GitHub Notification of comment by youennf
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/3097#issuecomment-4073472653 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 17 March 2026 09:19:01 UTC