docs(daemon): evaluate epoll/kqueue connection multiplexing#3437
Merged
Conversation
Documentation-only audit of the daemon's accept-loop and per-connection threading model. Compares three paths (raw mio event loop, full tokio async accept, status quo thread-per-connection) against upstream rsync 3.4.1's select+fork model and against the existing async_session scaffold. Recommends extending the in-tree async path behind the existing async Cargo feature rather than introducing a new mio variant alongside the synchronous loop.
oferchen
added a commit
that referenced
this pull request
May 1, 2026
…3437) Documentation-only audit of the daemon's accept-loop and per-connection threading model. Compares three paths (raw mio event loop, full tokio async accept, status quo thread-per-connection) against upstream rsync 3.4.1's select+fork model and against the existing async_session scaffold. Recommends extending the in-tree async path behind the existing async Cargo feature rather than introducing a new mio variant alongside the synchronous loop.
oferchen
added a commit
that referenced
this pull request
May 5, 2026
…3437) Documentation-only audit of the daemon's accept-loop and per-connection threading model. Compares three paths (raw mio event loop, full tokio async accept, status quo thread-per-connection) against upstream rsync 3.4.1's select+fork model and against the existing async_session scaffold. Recommends extending the in-tree async path behind the existing async Cargo feature rather than introducing a new mio variant alongside the synchronous loop.
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.
Summary
Documentation-only audit (
docs/audits/daemon-event-loop-multiplexing.md)addressing task #1675: should the oc-rsync daemon adopt epoll/kqueue
event-loop multiplexing in place of the current thread-per-connection
model?
The audit:
crates/daemon/src/daemon/sections/server_runtime/{accept_loop,connection,listener,workers}.rsand the existing tokio scaffold in
crates/daemon/src/daemon/async_session/.socket.c:533start_accept_loop,which uses
select(2)over listening fds +fork(2)per connection -no per-connection multiplexing).
mio1.x event loop, (b) fulltokioaccept with
spawn_blockingworkers, (c) status quo.Recommendation: pursue option (b) - promote the existing
async_session/listener to the production accept loop behind theexisting
asyncCargo feature - but defer until a deployment withthousands of concurrent idle connections actually needs it. Reject
option (a) (would create a third accept-loop variant alongside the
sync and async paths). 8 follow-up tasks filed (#1676-#1683).
Test plan
git diffreview confirms the change is documentation-only.