Repository navigation
Accept quoted fallback override values - #1934
Merged
Merged
Conversation
3 tasks
oferchen
added a commit
that referenced
this pull request
May 1, 2026
Adds a docs-only RFC at docs/audits/async-daemon-listener.md proposing a feature-gated tokio-based async accept loop for the daemon. The design holds tokio at the accept boundary only and delegates per- session work to the existing synchronous handle_session via spawn_blocking, satisfying the workspace tokio dependency-scope policy. Complements the prior event-loop multiplexing audit (#1675) without superseding it. Phase 1 only - no implementation, no Cargo or Rust changes.
5 tasks done
oferchen
added a commit
that referenced
this pull request
May 1, 2026
…feature (#1934) (#3524) Adds docs/audits/daemon-async-listener-rfc.md sketching a feature-gated tokio-based async accept loop for the daemon. The accept loop and greeting/module-select phase run on the tokio runtime; the transfer hot path stays synchronous behind a spawn_blocking hand-off, keeping tokio scoped to the daemon crate per the #1779 / #1818 policy. Design only - implementation lands in #1935.
oferchen
added a commit
that referenced
this pull request
May 5, 2026
Adds a docs-only RFC at docs/audits/async-daemon-listener.md proposing a feature-gated tokio-based async accept loop for the daemon. The design holds tokio at the accept boundary only and delegates per- session work to the existing synchronous handle_session via spawn_blocking, satisfying the workspace tokio dependency-scope policy. Complements the prior event-loop multiplexing audit (#1675) without superseding it. Phase 1 only - no implementation, no Cargo or Rust changes.
oferchen
added a commit
that referenced
this pull request
May 5, 2026
…feature (#1934) (#3524) Adds docs/audits/daemon-async-listener-rfc.md sketching a feature-gated tokio-based async accept loop for the daemon. The accept loop and greeting/module-select phase run on the tokio runtime; the transfer hot path stays synchronous behind a spawn_blocking hand-off, keeping tokio scoped to the daemon crate per the #1779 / #1818 policy. Design only - implementation lands in #1935.
2 tasks
oferchen
added a commit
that referenced
this pull request
May 5, 2026
) Specifies a hybrid model where a tokio async accept loop hands off accepted connections to a fixed-size pool of synchronous worker threads via a bounded channel. Transfer state machine and wire format are unchanged; the design only replaces the accept-and-dispatch layer. Tracking #1674. References #1591 (async-channel abstraction), #1934/#1935 (async-daemon feature gate), #2052 (TLS termination).
This was referenced May 5, 2026
oferchen
added a commit
that referenced
this pull request
May 7, 2026
Audit current thread-per-connection model in `crates/daemon/src/`, the proposed tokio async listener (RFC #1934), resource cost at 100/1k/10k concurrent connections, hybrid sync-worker migration plan behind the `async-daemon` feature flag, and decision criteria for adoption.
3 tasks
This was referenced May 7, 2026
oferchen
added a commit
that referenced
this pull request
May 7, 2026
…#3891) Slim runnable plan complementing the broader benchmark plan. Specifies the minimum harness needed to land first measured numbers on Linux loopback at 100/1K/10K concurrent rsync:// pulls so #1934 RFC and #1935 async-listener work can compare sync vs async paths against quantified sync-baseline ttfb, completion p99, peak RSS, and thread count.
oferchen
added a commit
that referenced
this pull request
May 7, 2026
…c daemon (#1751) (#3893) Designs the bridge between the tokio-driven async daemon (#1934/#1935) and rayon-dispatched CPU work (checksums, delta apply, parallel stat). Recommends a `rayon_bridge` helper in `crates/transfer/src/async_compat.rs` using `tokio::task::spawn_blocking` with a threshold short-circuit, and discusses the dedicated-pool + `block_in_place` alternative plus risks (double-spawn, panic propagation, cancellation, oversubscription).
oferchen
added a commit
that referenced
this pull request
May 7, 2026
#3895) Replace the thread-per-connection audit with a focused 5-section brief covering the accept loop in crates/daemon/src/daemon/sections/server_runtime/accept_loop.rs, the per-thread stack and per-session memory ceiling, the fork-vs-thread trade vs upstream rsyncd, slowloris and lock-contention failure modes, and the migration path through tokio listener (#1934/#1935), daemon-level max_connections, and bounded worker pools.
This was referenced May 7, 2026
4 tasks
oferchen
added a commit
that referenced
this pull request
May 16, 2026
Expand the placeholder async migration plan into a comprehensive, opinionated design covering: current synchronous threading model per subsystem, per-subsystem cost/benefit, a phased incremental adoption strategy, tokio runtime choice with rejected alternatives, sync/async bridge patterns, backward-compat strategy, risk register, and open questions. Cross-references existing async-related tasks (#1367, #1411, #1591, #1593, #1595, #1674, #1751, #1779, #1780, #1782, #1796, #1797, #1805, #1806, #1889, #1890, #1891, #1892, #1934, #1935, #2136) and related design notes so future planners have a single anchor.
oferchen
added a commit
that referenced
this pull request
May 16, 2026
Expand the placeholder async migration plan into a comprehensive, opinionated design covering: current synchronous threading model per subsystem, per-subsystem cost/benefit, a phased incremental adoption strategy, tokio runtime choice with rejected alternatives, sync/async bridge patterns, backward-compat strategy, risk register, and open questions. Cross-references existing async-related tasks (#1367, #1411, #1591, #1593, #1595, #1674, #1751, #1779, #1780, #1782, #1796, #1797, #1805, #1806, #1889, #1890, #1891, #1892, #1934, #1935, #2136) and related design notes so future planners have a single anchor.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
) Specifies a hybrid model where a tokio async accept loop hands off accepted connections to a fixed-size pool of synchronous worker threads via a bounded channel. Transfer state machine and wire format are unchanged; the design only replaces the accept-and-dispatch layer. Tracking #1674. References #1591 (async-channel abstraction), #1934/#1935 (async-daemon feature gate), #2052 (TLS termination).
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Audit current thread-per-connection model in `crates/daemon/src/`, the proposed tokio async listener (RFC #1934), resource cost at 100/1k/10k concurrent connections, hybrid sync-worker migration plan behind the `async-daemon` feature flag, and decision criteria for adoption.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…#3891) Slim runnable plan complementing the broader benchmark plan. Specifies the minimum harness needed to land first measured numbers on Linux loopback at 100/1K/10K concurrent rsync:// pulls so #1934 RFC and #1935 async-listener work can compare sync vs async paths against quantified sync-baseline ttfb, completion p99, peak RSS, and thread count.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…c daemon (#1751) (#3893) Designs the bridge between the tokio-driven async daemon (#1934/#1935) and rayon-dispatched CPU work (checksums, delta apply, parallel stat). Recommends a `rayon_bridge` helper in `crates/transfer/src/async_compat.rs` using `tokio::task::spawn_blocking` with a threshold short-circuit, and discusses the dedicated-pool + `block_in_place` alternative plus risks (double-spawn, panic propagation, cancellation, oversubscription).
oferchen
added a commit
that referenced
this pull request
May 18, 2026
#3895) Replace the thread-per-connection audit with a focused 5-section brief covering the accept loop in crates/daemon/src/daemon/sections/server_runtime/accept_loop.rs, the per-thread stack and per-session memory ceiling, the fork-vs-thread trade vs upstream rsyncd, slowloris and lock-contention failure modes, and the migration path through tokio listener (#1934/#1935), daemon-level max_connections, and bounded worker pools.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Expand the placeholder async migration plan into a comprehensive, opinionated design covering: current synchronous threading model per subsystem, per-subsystem cost/benefit, a phased incremental adoption strategy, tokio runtime choice with rejected alternatives, sync/async bridge patterns, backward-compat strategy, risk register, and open questions. Cross-references existing async-related tasks (#1367, #1411, #1591, #1593, #1595, #1674, #1751, #1779, #1780, #1782, #1796, #1797, #1805, #1806, #1889, #1890, #1891, #1892, #1934, #1935, #2136) and related design notes so future planners have a single anchor.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Expand the placeholder async migration plan into a comprehensive, opinionated design covering: current synchronous threading model per subsystem, per-subsystem cost/benefit, a phased incremental adoption strategy, tokio runtime choice with rejected alternatives, sync/async bridge patterns, backward-compat strategy, risk register, and open questions. Cross-references existing async-related tasks (#1367, #1411, #1591, #1593, #1595, #1674, #1751, #1779, #1780, #1782, #1796, #1797, #1805, #1806, #1889, #1890, #1891, #1892, #1934, #1935, #2136) and related design notes so future planners have a single anchor.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
) Specifies a hybrid model where a tokio async accept loop hands off accepted connections to a fixed-size pool of synchronous worker threads via a bounded channel. Transfer state machine and wire format are unchanged; the design only replaces the accept-and-dispatch layer. Tracking #1674. References #1591 (async-channel abstraction), #1934/#1935 (async-daemon feature gate), #2052 (TLS termination).
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Audit current thread-per-connection model in `crates/daemon/src/`, the proposed tokio async listener (RFC #1934), resource cost at 100/1k/10k concurrent connections, hybrid sync-worker migration plan behind the `async-daemon` feature flag, and decision criteria for adoption.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Expand the placeholder async migration plan into a comprehensive, opinionated design covering: current synchronous threading model per subsystem, per-subsystem cost/benefit, a phased incremental adoption strategy, tokio runtime choice with rejected alternatives, sync/async bridge patterns, backward-compat strategy, risk register, and open questions. Cross-references existing async-related tasks (#1367, #1411, #1591, #1593, #1595, #1674, #1751, #1779, #1780, #1782, #1796, #1797, #1805, #1806, #1889, #1890, #1891, #1892, #1934, #1935, #2136) and related design notes so future planners have a single anchor.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…#3891) Slim runnable plan complementing the broader benchmark plan. Specifies the minimum harness needed to land first measured numbers on Linux loopback at 100/1K/10K concurrent rsync:// pulls so #1934 RFC and #1935 async-listener work can compare sync vs async paths against quantified sync-baseline ttfb, completion p99, peak RSS, and thread count.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…c daemon (#1751) (#3893) Designs the bridge between the tokio-driven async daemon (#1934/#1935) and rayon-dispatched CPU work (checksums, delta apply, parallel stat). Recommends a `rayon_bridge` helper in `crates/transfer/src/async_compat.rs` using `tokio::task::spawn_blocking` with a threshold short-circuit, and discusses the dedicated-pool + `block_in_place` alternative plus risks (double-spawn, panic propagation, cancellation, oversubscription).
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
#3895) Replace the thread-per-connection audit with a focused 5-section brief covering the accept loop in crates/daemon/src/daemon/sections/server_runtime/accept_loop.rs, the per-thread stack and per-session memory ceiling, the fork-vs-thread trade vs upstream rsyncd, slowloris and lock-contention failure modes, and the migration path through tokio listener (#1934/#1935), daemon-level max_connections, and bounded worker pools.
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
Testing