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

feat(s2n-quic-dc): set max_datagram_size in ApplicationParams #2258

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

WesleyRosenblum
Copy link
Contributor

Description of changes:

This change replaces the usage of MaxMtu in dc::ApplicationParams with the max_datagram_size, which is a value based on the actual confirmed MTU size, rather than a configured setting. This removes the last remaining usage of MaxMtu from the mtu::Controller, so I've cleaned that up a bit as well.

Call-outs:

This requires setting the InitialMtu setting to quickly probe a given MTU size, as the dc::ApplicationParams are configured before any regular MTU probing occurs.

I've also derived Copy for ApplicationParams and added a TEST_APPLICATION_PARAMS const for convenience.

Testing:

Existing tests

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@WesleyRosenblum WesleyRosenblum merged commit 947d960 into main Jun 21, 2024
129 of 131 checks passed
@WesleyRosenblum WesleyRosenblum deleted the WesleyRosenblum/maxdatagramdc branch June 21, 2024 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants