Skip to content

feat(network): implement zero-allocation io_uring tcp server with cus… - #15

Merged
Lotargo merged 1 commit into
mainfrom
feat-iouring-tcp-server-6346856269499210716
Mar 11, 2026
Merged

Lotargo merged 1 commit into
mainfrom
feat-iouring-tcp-server-6346856269499210716

Conversation

@Lotargo

@Lotargo Lotargo commented Mar 11, 2026

Copy link
Copy Markdown
Owner

…tom protocol

  • Added liburing dependency to vcpkg.json and configured CMake.
  • Implemented Protocol class with custom binary format (Magic, Length, Command, CRC32).
  • Built RingBuffer with zero-allocation peek() support for safe wrap-around reads.
  • Developed IoUringServer utilizing IORING_OP_ACCEPT, IORING_OP_RECV, and IORING_OP_SEND for asynchronous kernel-bypass networking.
  • Integrated eventfd to gracefully shut down the io_uring event loop and prevent deadlocks.
  • Implemented robust error handling to prevent DoS attacks on invalid magic bytes.
  • Added comprehensive unit tests via Google Test (ProtocolTests, RingBufferTests, IoUringServerTests).
  • Updated TODO.md and patterns.md to reflect the completed network layer tasks.

…tom protocol

- Added `liburing` dependency to `vcpkg.json` and configured CMake.
- Implemented `Protocol` class with custom binary format (Magic, Length, Command, CRC32).
- Built `RingBuffer` with zero-allocation `peek()` support for safe wrap-around reads.
- Developed `IoUringServer` utilizing `IORING_OP_ACCEPT`, `IORING_OP_RECV`, and `IORING_OP_SEND` for asynchronous kernel-bypass networking.
- Integrated `eventfd` to gracefully shut down the io_uring event loop and prevent deadlocks.
- Implemented robust error handling to prevent DoS attacks on invalid magic bytes.
- Added comprehensive unit tests via Google Test (`ProtocolTests`, `RingBufferTests`, `IoUringServerTests`).
- Updated `TODO.md` and `patterns.md` to reflect the completed network layer tasks.
@Lotargo
Lotargo merged commit 5491f44 into main Mar 11, 2026
2 of 4 checks passed
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.

1 participant