Skip to content

How can I send messages larger than 65535 bytes? #272

Open
@zkrising

Description

Full disclosure, I know little to nothing about networks at this layer.

I'm using matchbox_socket to send data between peers. One of the messages I'd like to send is fairly large (~200kb-1mb). This fails to send due to this error:

2023-07-16T00:24:53.516938Z ERROR matchbox_socket::webrtc_socket::native: error sending to data channel: Data(Sctp(ErrOutboundPacketTooLarge))    

Looking into this more shows that it happens in webrtc-data, and some wikipedia sleuthing says that sctp is fundamentally limited to 65535 bytes.

I would love to be able to send a message larger than that -- do I have to implement my own chunking and ordering? This seems like the sort of thing that someone's solved before, so am I missing some config option or something?

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions