Skip to content

Error: Outbound packet larger than maximum message size 65535 #1396

@enobufs

Description

@enobufs

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:

  1. By default it should allow 64KB
  2. SCTPTransport has remoteMaxMessageSize, but this doesn't get propagated to pion/sctp
  3. 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?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions