Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zkldi opened this issue Jul 16, 2023 · 2 comments
Open

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

zkldi opened this issue Jul 16, 2023 · 2 comments
Labels
question Further information is requested

Comments

@zkldi
Copy link

zkldi commented Jul 16, 2023

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?

@simbleau
Copy link
Collaborator

simbleau commented Jul 30, 2023

You'll need to implement your own chunking and ordering, I suppose, yes. To my knowledge there's no config for this in matchbox. Perhaps in the underlying webrtc crate we use.

@simbleau simbleau added the question Further information is requested label Sep 18, 2023
@simbleau
Copy link
Collaborator

Do we want to handle this or expect the user to do this themselves? @johanhelsing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants