Skip to content

feat(s2n-quic-transport) Adds packet storage feature #2668

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

maddeleine
Copy link
Contributor

@maddeleine maddeleine commented Jun 13, 2025

Release Summary:

Optional feature for s2n-quic to buffer packets it cannot decrypt until the keys to decrypt them are generated. This potentially allocates more memory per connection but it also combats packet loss.

Resolved issues:

resolves #2601

Description of changes:

s2n-quic will currently throw out packets it can't decrypt. We want to buffer at least one per packet space so that if the TLS library returns pending we store the packet until we can decrypt it.

Call-outs:

Testing:

Includes changes to the slow_tls test to assert that with this feature we are as fast as a normal TLS handshake since we are now buffering packets that were previously dropped.

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

@maddeleine maddeleine marked this pull request as ready for review July 1, 2025 01:12
@maddeleine maddeleine changed the title s2n-quic-transport(feat): Adds packet storage feature feat(s2n-quic-transport) Adds packet storage feature Jul 1, 2025
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.

Buffer TLS handshake/application packets if TLS poll call returns Pending during the handshake
1 participant