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-platform): emit socket events #2356

Merged
merged 1 commit into from
Oct 28, 2024
Merged

Conversation

camshaft
Copy link
Contributor

@camshaft camshaft commented Oct 25, 2024

Description of changes:

This change restores the functionality of emitting the Platform events. When we refactored the IO model to process socket syscalls in a separate task from the endpoint these events were lost. This can cause visibility issues when debugging why packets aren't being sent/received.

Call-outs:

I've also emitted a PlatformStared event that emits the IP/port that the endpoint is listening on. This should also help debugging.

Testing:

I've added a snapshot test to make sure all of the endpoint-level events are being emitted.

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

@camshaft camshaft force-pushed the camshaft/socket-errors branch 4 times, most recently from 1b05294 to 5032286 Compare October 25, 2024 22:16
@camshaft camshaft marked this pull request as ready for review October 25, 2024 22:16
@@ -54,6 +62,10 @@ where
}};
}

publisher!(clock.get_time()).on_platform_started(event::builder::PlatformStarted {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would on_platform_event_loop_started be too wordy? its more aligned with on_platform_event_loop_wakeup

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah i like that

@camshaft camshaft merged commit 6c7057f into main Oct 28, 2024
129 of 130 checks passed
@camshaft camshaft deleted the camshaft/socket-errors branch October 28, 2024 20:46
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