Skip to content

docs(audits): evaluate async runtime for daemon listener (#1367) - #3852

Merged
oferchen merged 1 commit into
masterfrom
docs/daemon-async-runtime-1367
May 7, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/daemon-async-runtime-1367

Conversation

@oferchen

@oferchen oferchen commented May 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Audit current thread-per-connection model in crates/daemon/src/daemon/sections/server_runtime/ (accept loop, panic isolation via catch_unwind, dual-stack acceptors).
  • Evaluate the tokio async listener sketch in crates/daemon/src/daemon/async_session/ (RFC Accept quoted fallback override values #1934) and its benefits at 100, 1k, and 10k concurrent connections.
  • Cover tokio runtime overhead, task scheduling, and spawn_blocking cost for the still-sync transfer pipeline.
  • Define a hybrid sync-worker migration behind an async-daemon feature flag, with a runtime switch that preserves wire compatibility.
  • List adoption and deferral criteria.

Tracking: #1367. Companion RFC: #1934.

Test plan

  • Verify the document renders in GitHub markdown.
  • Confirm cited file paths exist on master.
  • Confirm line count stays under 350.

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.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 7, 2026
@oferchen
oferchen merged commit b20615d into master May 7, 2026
8 checks passed
@oferchen
oferchen deleted the docs/daemon-async-runtime-1367 branch May 8, 2026 03:51
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 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant