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-core): add generic IO event loop #1740

Merged
merged 2 commits into from
May 4, 2023

Conversation

camshaft
Copy link
Contributor

@camshaft camshaft commented May 1, 2023

Description

Using the refactors from #1734 and #1733, this PR adds a generic event loop implementation to make it easier to maintain the existing IO providers and develop new ones. I've updated the io/testing IO provider to use the new event loop and was able to remove quite a bit of code. This event loop will also be used in the new AF_XDP IO provider.

Call-outs:

Note that I haven't changed either the tokio or turmoil event loops in this PR, since that will require some additional work to implement the new Rx and Tx traits for platform/message/Queue. This is tracked in #1746.

Testing:

The event loop is being tested through the io/testing provider and all of the associated integration tests that use it. I've opened #1745 to track this.

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/generic-event-loop branch 3 times, most recently from 69e2671 to 8251445 Compare May 3, 2023 00:15
@camshaft camshaft marked this pull request as ready for review May 3, 2023 13:25
@camshaft camshaft force-pushed the camshaft/generic-event-loop branch from 8251445 to f376422 Compare May 3, 2023 22:40
toidiu
toidiu previously approved these changes May 4, 2023
Comment on lines +66 to +67
// TODO use the [pin macro](https://doc.rust-lang.org/std/pin/macro.pin.html) once
// available in MSRV
Copy link
Contributor

Choose a reason for hiding this comment

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

can you create an issue also. maybe we need a blanket tracking for MSRV related changes and a list of task to do once bumped

@camshaft camshaft force-pushed the camshaft/generic-event-loop branch from f376422 to ef32e31 Compare May 4, 2023 16:53
@camshaft camshaft requested a review from toidiu May 4, 2023 16:53
@camshaft camshaft enabled auto-merge (squash) May 4, 2023 16:53
@camshaft camshaft merged commit e7cc8fa into main May 4, 2023
@camshaft camshaft deleted the camshaft/generic-event-loop branch May 4, 2023 17:51
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