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

Expose the datagram traits from s2n-quic #1566

Merged
merged 1 commit into from
Nov 9, 2022

Conversation

Mark-Simulacrum
Copy link
Collaborator

This allows customer applications to implement their own Receiver/Sender without depending on s2n-quic-core.

I believe this captures everything needed for these implementations to happen without a s2n-quic-core dependency, but I didn't verify this. Some things that aren't covered by this PR but may be useful to implementors (based on the default impls):

  • MaxDatagramFrameSize::RECOMMENDED
  • packet space smoothing (implemented here)

But both of these are directly in the RFC text for QUIC, so it doesn't seem like they have to be separately exposed; users can define their own versions easily.

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

@goatgoose goatgoose requested a review from maddeleine November 8, 2022 20:06
@maddeleine
Copy link
Contributor

Can you run cargo fmt on this change? The CI is failing because the formatter has a suggestion.

This allows customer applications to implement their own Receiver/Sender
without depending on s2n-quic-core.
@Mark-Simulacrum
Copy link
Collaborator Author

Re-formatted. Sorry for missing that in the initial push.

@camshaft camshaft merged commit 9e5372e into aws:main Nov 9, 2022
@Mark-Simulacrum Mark-Simulacrum deleted the expose-datagram-traits branch November 14, 2022 00:31
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.

3 participants