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

Support large messages on TLS, TCP, UXS and USTLS transports #65

Open
m-ronnblom opened this issue Apr 20, 2022 · 0 comments
Open

Support large messages on TLS, TCP, UXS and USTLS transports #65

m-ronnblom opened this issue Apr 20, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@m-ronnblom
Copy link
Collaborator

Add support for large (1MB) messages on TLS and TLS and the imaginary (at the time of writing) UXS and USTLS transports.

The idea is to make the "xcm.msg_msg_size" writable at socket creation, and to keep the old (constant) value of 65536 bytes as the default. This is useful since some applications may already use this value to size stack allocations. Such applications will get an unpleasant surprise if this number grows something very much larger (potentially larger than the calling thread's stack).

A configurable max message size may also be useful to optimize memory management in the transport, and for applications to have XCM drop messages larger than allowed by the application layer protocol (running on top of XCM).

Introduce a new attribute "xcm.max_max_msg_size", to communicate what is the max configurable limit for the message size ceiling.

No other API changes should be required.

No wire-protocol changes are required.

@m-ronnblom m-ronnblom added the enhancement New feature or request label Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant