feat(s2n-quic-core): add generic IO event loop #1740
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
andTx
traits forplatform/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.