Re: [webrtc-pc] Consider reverting nullable maxMessageSize (#3104)

> 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