- From: Jan-Ivar Bruaroey via GitHub <noreply@w3.org>
- Date: Wed, 13 May 2026 18:07:23 +0000
- To: public-webrtc-logs@w3.org
> If you see infinity in maxMessageSize in an offer from Chrome, it's a mistake. Chrome's limit is finite at the moment.
Chrome/Safari [show](https://jsfiddle.net/jib1/7oupqcm8/60) `a=max-message-size:262144` in the (have-local) offer, but `Infinity` in `pc1.sctp.maxMessageSize`.
https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/blink/renderer/modules/peerconnection/rtc_sctp_transport.cc#100 has this comment:
```cpp
double RTCSctpTransport::maxMessageSize() const {
if (current_state_.MaxMessageSize()) {
return *current_state_.MaxMessageSize();
}
// Spec says:
// If local size is unlimited and remote side is unknown, return infinity.
// http://w3c.github.io/webrtc-pc/#dfn-update-the-data-max-message-size
return std::numeric_limits<double>::infinity();
}
```
Except [update the data max message size](https://w3c.github.io/webrtc-pc/#dfn-update-the-data-max-message-size) says: _"Let remoteMaxMessageSize be ... 65536 if the attribute is missing."_
If _canSendSize_ >= 262144 then `maxMessageSize` is _"the smaller of remoteMaxMessageSize or canSendSize"_ = 65536.
So Firefox appears correct in this case.
--
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/3104#issuecomment-4443952447 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 13 May 2026 18:07:28 UTC