Your environment.
- Version: pion/webrtc@v2.2.24
- Browser: n/a
What did you do?
Try to send data channel message with length 64KB
What did you expect?
Successfully sent.
What happened?
Errored with:
Outbound packet larger than maximum message size 65535
Here's where the error originates.
There are three problems:
- By default it should allow 64KB
- SCTPTransport has
remoteMaxMessageSize, but this doesn't get propagated to pion/sctp
- remoteMaxMessageSize should be updated based on
max-message-size in SDP.
@Sean-Der do we parse max-message-size in SDP, and do we send it?