Skip to content

Accept quoted fallback override values - #1934

Merged
oferchen merged 1 commit into
masterfrom
implement-complete-functionality-for-oc-rsync
Nov 4, 2025
Merged

oferchen merged 1 commit into
masterfrom
implement-complete-functionality-for-oc-rsync

Conversation

@oferchen

@oferchen oferchen commented Nov 4, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • strip matching quotes from OC_RSYNC_FALLBACK and OC_RSYNC_DAEMON_FALLBACK values before interpreting them
  • accept quoted defaults/disabled keywords and expose quoting behaviour through new unit tests

Testing

  • cargo test

@oferchen
oferchen merged commit 6d6939d into master Nov 4, 2025
@oferchen
oferchen deleted the implement-complete-functionality-for-oc-rsync branch November 4, 2025 08:09
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.
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.
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).
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.
oferchen added a commit that referenced this pull request May 7, 2026
Concrete plan for replacing the synchronous accept loop with a Tokio
listener bridged to the sync transfer worker via spawn_blocking.
Gated behind a new async-daemon Cargo feature. Cross-references #1934
(accepted RFC) and #1751 (async migration roadmap).
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.
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
Concrete plan for replacing the synchronous accept loop with a Tokio
listener bridged to the sync transfer worker via spawn_blocking.
Gated behind a new async-daemon Cargo feature. Cross-references #1934
(accepted RFC) and #1751 (async migration roadmap).
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
Concrete plan for replacing the synchronous accept loop with a Tokio
listener bridged to the sync transfer worker via spawn_blocking.
Gated behind a new async-daemon Cargo feature. Cross-references #1934
(accepted RFC) and #1751 (async migration roadmap).
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant