feat: Upgrades networking to use io_uring.#2315
Merged
kamronbatman merged 2 commits intomainfrom Feb 2, 2026
Merged
Conversation
daaf261 to
0c412ec
Compare
There was a problem hiding this comment.
Pull request overview
This pull request upgrades the networking infrastructure from a traditional socket polling approach to io_uring-based I/O on Linux and Windows RIO (Registered I/O). The changes introduce a new C native library for Windows RIO support, replace the core networking components (TcpServer, Pipe), and refactor NetState to use the new IORingGroup package.
Changes:
- Adds new C native library (ioring.c/h) implementing Windows RIO with io_uring-compatible API
- Replaces TcpServer and Pipe classes with new IORingGroup-based socket manager
- Refactors NetState to use RingSocket/RingSocketManager instead of raw Socket/Pipe
- Updates all test infrastructure to work with new networking model
Reviewed changes
Copilot reviewed 59 out of 59 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| Projects/ioring/ioring.vcxproj | Visual Studio project for Windows RIO native library |
| Projects/ioring/ioring.h | Header defining io_uring-compatible API for Windows RIO |
| Projects/ioring/ioring.c | C implementation of Windows RIO with AcceptEx support |
| Projects/Server/Network/SocketHelper.cs | Platform-specific utilities for socket handle introspection |
| Projects/Server/Network/NetState/NetState.cs | Core NetState refactoring for new networking model |
| Projects/Server/Network/NetState/NetState.Network.cs | New networking layer with RingSocketManager |
| Projects/Server/Server.csproj | Package reference update from PollGroup to IORingGroup |
| Projects/UOContent/Misc/ServerList.cs | Updated to use new LocalEndPoint property |
| Projects/Server.Tests/Helpers/PacketTestUtilities.cs | Test helper updates for new socket creation |
| Various test files | Updated SendPipe.Reader calls to SendBuffer.GetReadSpan |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
8350e83 to
40452c0
Compare
e10b53d to
f1efc1f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Important
Breaking Changes
Summary
Upgrades the networking stack from PollGroup-based I/O to io_uring, significantly improving I/O performance on Linux.
This also adds native client encryption support for encrypted UO clients.
Major Changes
io_uring Networking Architecture
completions
getsockname)
Client Encryption Support
NetState Improvements
Configuration
Dependencies
Test plan