Skip to content

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

Closed

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?

Activity

  1. enobufs commented on Sep 12, 2020

    @enobufs
    MemberAuthor

    @Sean-Der I have fixed the default value at pion/sctp@v1.7.10. (the number 1)

    In the change, I also added:

    • MaxMessageSize param to sctp.Config struct
    • MaxMessageSize() to sctp.Association
    • SetMaxMessageSize() to sctp.Association

    So that we could accomplish 2 and 3 I mentioned earlier at pion/webrtc (SctpTransport).

  2. added this to the milestone on Jan 23, 2022
  3. removed this from the milestone on May 22, 2022
  4. Sean-Der commented on Mar 6, 2025

    @Sean-Der
    Member

    Fixed with e4ff415

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

    ⌂ 换网址