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

Replace requested_handshakes set with a callback #2469

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

Mark-Simulacrum
Copy link
Collaborator

Release Summary:

n/a

Resolved issues:

n/a

Description of changes:

This drops the requested handshakes map in favor of supporting registering a callback. I initially tried/considered doing this as a Subscriber, but it gets pretty tricky to integrate that -- the Map is already getting passed into s2n-quic endpoints as a dc::Endpoint. Plus, the detailed logic on how to handshake interacts with application layer concerns (e.g., possibly throttling) that I'm not sure should live in s2n-quic.

Call-outs:

n/a

Testing:

No additional tests here - this sort of implies we have no tests for this functionality in s2n-quic-dc, which makes sense since that doesn't have any actual s2n-quic dependency. I'm not sure whether we should add one or otherwise tweak things in that regard. It should get caught in the internal integration tests. (Note that this is not safe by itself, all users of s2n-quic-dc need to add the registration to client handshake endpoints).

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

This avoids issues with bounding the map, and allows us to schedule
handshakes immediately. We avoid a building herd of re-requested
handshakes by rescheduling a handshake by handshake period just after
our attempt to handshake.
@camshaft camshaft enabled auto-merge (squash) February 6, 2025 20:19
@camshaft camshaft disabled auto-merge February 6, 2025 22:56
@camshaft camshaft merged commit a5d8422 into aws:main Feb 6, 2025
118 of 119 checks passed
@Mark-Simulacrum Mark-Simulacrum deleted the immediate-handshake branch February 6, 2025 22:57
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